Package org.apache.xerces.impl.dv

Examples of org.apache.xerces.impl.dv.XSSimpleType.derivedFromType()


 
  private static int getNumericType(RDFDatatype numeric)
  {
    XSSimpleType type = (XSSimpleType) numeric.extendedTypeDefinition();
       
    if (type.derivedFromType(integerType, XSConstants.DERIVATION_EXTENSION))
      return integerType.getBuiltInKind();
    if (type.derivedFromType(decimalType, XSConstants.DERIVATION_EXTENSION))
      return decimalType.getBuiltInKind();
    if (type.derivedFromType(floatType, XSConstants.DERIVATION_EXTENSION))
      return floatType.getBuiltInKind();
View Full Code Here


  {
    XSSimpleType type = (XSSimpleType) numeric.extendedTypeDefinition();
       
    if (type.derivedFromType(integerType, XSConstants.DERIVATION_EXTENSION))
      return integerType.getBuiltInKind();
    if (type.derivedFromType(decimalType, XSConstants.DERIVATION_EXTENSION))
      return decimalType.getBuiltInKind();
    if (type.derivedFromType(floatType, XSConstants.DERIVATION_EXTENSION))
      return floatType.getBuiltInKind();
    if (type.derivedFromType(doubleType, XSConstants.DERIVATION_EXTENSION))
      return doubleType.getBuiltInKind();
View Full Code Here

       
    if (type.derivedFromType(integerType, XSConstants.DERIVATION_EXTENSION))
      return integerType.getBuiltInKind();
    if (type.derivedFromType(decimalType, XSConstants.DERIVATION_EXTENSION))
      return decimalType.getBuiltInKind();
    if (type.derivedFromType(floatType, XSConstants.DERIVATION_EXTENSION))
      return floatType.getBuiltInKind();
    if (type.derivedFromType(doubleType, XSConstants.DERIVATION_EXTENSION))
      return doubleType.getBuiltInKind();
   
    throw new IllegalArgumentException();
View Full Code Here

      return integerType.getBuiltInKind();
    if (type.derivedFromType(decimalType, XSConstants.DERIVATION_EXTENSION))
      return decimalType.getBuiltInKind();
    if (type.derivedFromType(floatType, XSConstants.DERIVATION_EXTENSION))
      return floatType.getBuiltInKind();
    if (type.derivedFromType(doubleType, XSConstants.DERIVATION_EXTENSION))
      return doubleType.getBuiltInKind();
   
    throw new IllegalArgumentException();
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.