com.sun.org.apache.xerces.internal.impl.xs.XSImplementationImpl Java Examples

The following examples show how to use com.sun.org.apache.xerces.internal.impl.xs.XSImplementationImpl. 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: DOMXSImplementationSourceImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #2
Source File: DOMXSImplementationSourceImpl.java    From openjdk-8 with GNU General Public License v2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #3
Source File: DOMXSImplementationSourceImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #4
Source File: DOMXSImplementationSourceImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #5
Source File: DOMXSImplementationSourceImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #6
Source File: DOMXSImplementationSourceImpl.java    From hottub with GNU General Public License v2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #7
Source File: DOMXSImplementationSourceImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #8
Source File: DOMXSImplementationSourceImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #9
Source File: DOMXSImplementationSourceImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #10
Source File: DOMXSImplementationSourceImpl.java    From Bytecoder with Apache License 2.0 6 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) {
    final List<DOMImplementation> implementations = new ArrayList<>();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.add(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.add(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.add(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #11
Source File: DOMXSImplementationSourceImpl.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #12
Source File: DOMXSImplementationSourceImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #13
Source File: DOMXSImplementationSourceImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #14
Source File: DOMXSImplementationSourceImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #15
Source File: DOMXSImplementationSourceImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #16
Source File: DOMXSImplementationSourceImpl.java    From JDKSourceCode1.8 with MIT License 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #17
Source File: DOMXSImplementationSourceImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #18
Source File: DOMXSImplementationSourceImpl.java    From jdk8u60 with GNU General Public License v2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #19
Source File: DOMXSImplementationSourceImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #20
Source File: DOMXSImplementationSourceImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}
 
Example #21
Source File: DOMXSImplementationSourceImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * A method to request a DOM implementation.
 * @param features A string that specifies which features 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 1.0 Traversal Events 2.0"
 * @return An implementation that has the desired features, or
 *   <code>null</code> if this source has none.
 */
public DOMImplementation getDOMImplementation(String features) {
    DOMImplementation impl = super.getDOMImplementation(features);
    if (impl != null){
        return impl;
    }
    // if not try the PSVIDOMImplementation
    impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }
    // if not try the XSImplementation
    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        return impl;
    }

    return null;
}
 
Example #22
Source File: DOMXSImplementationSourceImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 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) {
    final Vector implementations = new Vector();

    // first check whether the CoreDOMImplementation would do
    DOMImplementationList list = super.getDOMImplementationList(features);
    //Add core DOMImplementations
    for (int i=0; i < list.getLength(); i++ ) {
        implementations.addElement(list.item(i));
    }

    DOMImplementation impl = PSVIDOMImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }

    impl = XSImplementationImpl.getDOMImplementation();
    if (testImpl(impl, features)) {
        implementations.addElement(impl);
    }
    return new DOMImplementationListImpl(implementations);
}