Java Code Examples for com.sun.org.apache.xerces.internal.xs.XSConstants#DECIMAL_DT

The following examples show how to use com.sun.org.apache.xerces.internal.xs.XSConstants#DECIMAL_DT . 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: XMLSchemaValidator.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 2
Source File: XSSimpleTypeDecl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 3
Source File: XSSimpleTypeDecl.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 4
Source File: Field.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 5
Source File: XMLSchemaValidator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 6
Source File: ValidatedInfo.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the primitive type of the given type.
 * @param valueType A value type as defined in XSConstants.
 * @return The primitive type from which valueType was derived.
 */
private static short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 7
Source File: Field.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 8
Source File: XMLSchemaValidator.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 9
Source File: Field.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 10
Source File: Field.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 11
Source File: XSSimpleTypeDecl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 12
Source File: XSSimpleTypeDecl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 13
Source File: Field.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 14
Source File: XMLSchemaValidator.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 15
Source File: XSSimpleTypeDecl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 16
Source File: XMLSchemaValidator.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 17
Source File: XMLSchemaValidator.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 18
Source File: XSSimpleTypeDecl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 19
Source File: Field.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}
 
Example 20
Source File: XMLSchemaValidator.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private short convertToPrimitiveKind(short valueType) {
    /** Primitive datatypes. */
    if (valueType <= XSConstants.NOTATION_DT) {
        return valueType;
    }
    /** Types derived from string. */
    if (valueType <= XSConstants.ENTITY_DT) {
        return XSConstants.STRING_DT;
    }
    /** Types derived from decimal. */
    if (valueType <= XSConstants.POSITIVEINTEGER_DT) {
        return XSConstants.DECIMAL_DT;
    }
    /** Other types. */
    return valueType;
}