org.relaxng.datatype.DatatypeBuilder Java Examples

The following examples show how to use org.relaxng.datatype.DatatypeBuilder. 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: CompatibilityDatatypeLibrary.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    if (type.equals("ID")
        || type.equals("IDREF")
        || type.equals("IDREFS")) {
        if (xsdDatatypeLibrary == null) {
            xsdDatatypeLibrary =
                factory.createDatatypeLibrary(
                    WellKnownNamespaces.XML_SCHEMA_DATATYPES);
            if (xsdDatatypeLibrary == null)
                throw new DatatypeException();
        }
        return xsdDatatypeLibrary.createDatatypeBuilder(type);
    }
    throw new DatatypeException();
}
 
Example #2
Source File: CompatibilityDatatypeLibrary.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    if (type.equals("ID")
        || type.equals("IDREF")
        || type.equals("IDREFS")) {
        if (xsdDatatypeLibrary == null) {
            xsdDatatypeLibrary =
                factory.createDatatypeLibrary(
                    WellKnownNamespaces.XML_SCHEMA_DATATYPES);
            if (xsdDatatypeLibrary == null)
                throw new DatatypeException();
        }
        return xsdDatatypeLibrary.createDatatypeBuilder(type);
    }
    throw new DatatypeException();
}
 
Example #3
Source File: CompatibilityDatatypeLibrary.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    if (type.equals("ID")
        || type.equals("IDREF")
        || type.equals("IDREFS")) {
        if (xsdDatatypeLibrary == null) {
            xsdDatatypeLibrary =
                factory.createDatatypeLibrary(
                    WellKnownNamespaces.XML_SCHEMA_DATATYPES);
            if (xsdDatatypeLibrary == null)
                throw new DatatypeException();
        }
        return xsdDatatypeLibrary.createDatatypeBuilder(type);
    }
    throw new DatatypeException();
}
 
Example #4
Source File: CompatibilityDatatypeLibrary.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    if (type.equals("ID")
        || type.equals("IDREF")
        || type.equals("IDREFS")) {
        if (xsdDatatypeLibrary == null) {
            xsdDatatypeLibrary =
                factory.createDatatypeLibrary(
                    WellKnownNamespaces.XML_SCHEMA_DATATYPES);
            if (xsdDatatypeLibrary == null)
                throw new DatatypeException();
        }
        return xsdDatatypeLibrary.createDatatypeBuilder(type);
    }
    throw new DatatypeException();
}
 
Example #5
Source File: CompatibilityDatatypeLibrary.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    if (type.equals("ID")
        || type.equals("IDREF")
        || type.equals("IDREFS")) {
        if (xsdDatatypeLibrary == null) {
            xsdDatatypeLibrary =
                factory.createDatatypeLibrary(
                    WellKnownNamespaces.XML_SCHEMA_DATATYPES);
            if (xsdDatatypeLibrary == null)
                throw new DatatypeException();
        }
        return xsdDatatypeLibrary.createDatatypeBuilder(type);
    }
    throw new DatatypeException();
}
 
Example #6
Source File: CompatibilityDatatypeLibrary.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    if (type.equals("ID")
        || type.equals("IDREF")
        || type.equals("IDREFS")) {
        if (xsdDatatypeLibrary == null) {
            xsdDatatypeLibrary =
                factory.createDatatypeLibrary(
                    WellKnownNamespaces.XML_SCHEMA_DATATYPES);
            if (xsdDatatypeLibrary == null)
                throw new DatatypeException();
        }
        return xsdDatatypeLibrary.createDatatypeBuilder(type);
    }
    throw new DatatypeException();
}
 
Example #7
Source File: CompatibilityDatatypeLibrary.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    if (type.equals("ID")
        || type.equals("IDREF")
        || type.equals("IDREFS")) {
        if (xsdDatatypeLibrary == null) {
            xsdDatatypeLibrary =
                factory.createDatatypeLibrary(
                    WellKnownNamespaces.XML_SCHEMA_DATATYPES);
            if (xsdDatatypeLibrary == null)
                throw new DatatypeException();
        }
        return xsdDatatypeLibrary.createDatatypeBuilder(type);
    }
    throw new DatatypeException();
}
 
Example #8
Source File: BuiltinDatatypeLibrary.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    xsdDatatypeLibrary =
        factory.createDatatypeLibrary(
            WellKnownNamespaces.XML_SCHEMA_DATATYPES);
    if (xsdDatatypeLibrary == null)
        throw new DatatypeException();

    if (type.equals("string") || type.equals("token")) {
        return new BuiltinDatatypeBuilder(
            xsdDatatypeLibrary.createDatatype(type));
    }
    throw new DatatypeException();
}
 
Example #9
Source File: BuiltinDatatypeLibrary.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    xsdDatatypeLibrary =
        factory.createDatatypeLibrary(
            WellKnownNamespaces.XML_SCHEMA_DATATYPES);
    if (xsdDatatypeLibrary == null)
        throw new DatatypeException();

    if (type.equals("string") || type.equals("token")) {
        return new BuiltinDatatypeBuilder(
            xsdDatatypeLibrary.createDatatype(type));
    }
    throw new DatatypeException();
}
 
Example #10
Source File: BuiltinDatatypeLibrary.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    xsdDatatypeLibrary =
        factory.createDatatypeLibrary(
            WellKnownNamespaces.XML_SCHEMA_DATATYPES);
    if (xsdDatatypeLibrary == null)
        throw new DatatypeException();

    if (type.equals("string") || type.equals("token")) {
        return new BuiltinDatatypeBuilder(
            xsdDatatypeLibrary.createDatatype(type));
    }
    throw new DatatypeException();
}
 
Example #11
Source File: BuiltinDatatypeLibrary.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    xsdDatatypeLibrary =
        factory.createDatatypeLibrary(
            WellKnownNamespaces.XML_SCHEMA_DATATYPES);
    if (xsdDatatypeLibrary == null)
        throw new DatatypeException();

    if (type.equals("string") || type.equals("token")) {
        return new BuiltinDatatypeBuilder(
            xsdDatatypeLibrary.createDatatype(type));
    }
    throw new DatatypeException();
}
 
Example #12
Source File: BuiltinDatatypeLibrary.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    xsdDatatypeLibrary =
        factory.createDatatypeLibrary(
            WellKnownNamespaces.XML_SCHEMA_DATATYPES);
    if (xsdDatatypeLibrary == null)
        throw new DatatypeException();

    if (type.equals("string") || type.equals("token")) {
        return new BuiltinDatatypeBuilder(
            xsdDatatypeLibrary.createDatatype(type));
    }
    throw new DatatypeException();
}
 
Example #13
Source File: BuiltinDatatypeLibrary.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    xsdDatatypeLibrary =
        factory.createDatatypeLibrary(
            WellKnownNamespaces.XML_SCHEMA_DATATYPES);
    if (xsdDatatypeLibrary == null)
        throw new DatatypeException();

    if (type.equals("string") || type.equals("token")) {
        return new BuiltinDatatypeBuilder(
            xsdDatatypeLibrary.createDatatype(type));
    }
    throw new DatatypeException();
}
 
Example #14
Source File: BuiltinDatatypeLibrary.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public DatatypeBuilder createDatatypeBuilder(String type)
    throws DatatypeException {
    xsdDatatypeLibrary =
        factory.createDatatypeLibrary(
            WellKnownNamespaces.XML_SCHEMA_DATATYPES);
    if (xsdDatatypeLibrary == null)
        throw new DatatypeException();

    if (type.equals("string") || type.equals("token")) {
        return new BuiltinDatatypeBuilder(
            xsdDatatypeLibrary.createDatatype(type));
    }
    throw new DatatypeException();
}
 
Example #15
Source File: SchemaBuilderImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
DataPatternBuilderImpl(DatatypeBuilder dtb) {
    this.dtb = dtb;
}
 
Example #16
Source File: SchemaBuilderImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
DataPatternBuilderImpl(DatatypeBuilder dtb) {
    this.dtb = dtb;
}
 
Example #17
Source File: SchemaBuilderImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
DataPatternBuilderImpl(DatatypeBuilder dtb) {
    this.dtb = dtb;
}
 
Example #18
Source File: SchemaBuilderImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
DataPatternBuilderImpl(DatatypeBuilder dtb) {
    this.dtb = dtb;
}
 
Example #19
Source File: SchemaBuilderImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
DataPatternBuilderImpl(DatatypeBuilder dtb) {
    this.dtb = dtb;
}
 
Example #20
Source File: SchemaBuilderImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
DataPatternBuilderImpl(DatatypeBuilder dtb) {
    this.dtb = dtb;
}
 
Example #21
Source File: SchemaBuilderImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
DataPatternBuilderImpl(DatatypeBuilder dtb) {
    this.dtb = dtb;
}