com.sun.org.apache.xerces.internal.dom.DOMImplementationListImpl Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.dom.DOMImplementationListImpl. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DOMImplementationSourceImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #2
Source File: DOMImplementationSourceImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #3
Source File: DOMImplementationSourceImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #4
Source File: DOMImplementationSourceImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #5
Source File: DOMImplementationSourceImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #6
Source File: DOMImplementationSourceImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #7
Source File: DOMImplementationSourceImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #8
Source File: DOMImplementationSourceImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #9
Source File: DOMImplementationSourceImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}
 
Example #10
Source File: DOMImplementationSourceImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * A method to request a list of DOM implementations that support the
 * specified features and versions, as specified in .
 * @param features A string that specifies which features and versions
 *   are required. This is a space separated list in which each feature
 *   is specified by its name optionally followed by a space and a
 *   version number. This is something like: "XML 3.0 Traversal +Events
 *   2.0"
 * @return A list of DOM implementations that support the desired
 *   features.
 */
public DOMImplementationList getDOMImplementationList(String features) {
    // first check whether the CoreDOMImplementation would do
    DOMImplementation impl = CoreDOMImplementationImpl.getDOMImplementation();
            final Vector implementations = new Vector();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }
    impl = DOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
                    implementations.addElement(impl);
    }

    return new DOMImplementationListImpl(implementations);
}