dataType = DatatypeFactory.getTypeByName(localName); } catch (DatatypeException e) { dataType = DatatypeFactory.getTypeByName(type); } catch (DatatypeException e) {
/** * @deprecated */ public static XSDatatype deriveByList( String newTypeName, XSDatatype itemType ) throws DatatypeException { return deriveByList("",newTypeName,itemType); }
/** * @deprecated */ public static XSDatatype deriveByUnion( String newTypeName, XSDatatype[] memberTypes ) throws DatatypeException { return deriveByUnion("",newTypeName,memberTypes); }
XSDatatype longList = DatatypeFactory.deriveByList("","name", LongType.theInstance ); XSDatatype byteList = DatatypeFactory.deriveByList("","name", ByteType.theInstance ); assertTrue( !byteList.isDerivedTypeOf(longList,true) ); assertTrue( !longList.isDerivedTypeOf(byteList,true) ); XSDatatype union1 = DatatypeFactory.deriveByUnion("","name", new XSDatatype[]{TokenType.theInstance,LongType.theInstance}); XSDatatype union2 = DatatypeFactory.deriveByUnion("","name", new XSDatatype[]{union1,longList}); XSDatatype union3;
add( builtinType, FloatType.theInstance ); else if( dataTypeName.equals("double") ) add( builtinType, DoubleType.theInstance ); else if( dataTypeName.equals("duration") ) add( builtinType, DurationType.theInstance ); else if( dataTypeName.equals("dateTime") ) add( builtinType, DateTimeType.theInstance ); else if( dataTypeName.equals("time") ) add( builtinType, TimeType.theInstance ); else if( dataTypeName.equals("date") ) add( builtinType, DateType.theInstance ); else if( dataTypeName.equals("gYearMonth") ) add( builtinType, GYearMonthType.theInstance ); else if( dataTypeName.equals("gYear") ) add( builtinType, GYearType.theInstance ); else if( dataTypeName.equals("gMonthDay") ) add( builtinType, GMonthDayType.theInstance ); else if( dataTypeName.equals("gDay") ) add( builtinType, GDayType.theInstance ); else
/** creates a map that contains frequently-used built-in types */ private static Map createInitialBuiltinTypesMap() { Map m = new java.util.HashMap(); // missing types are noted inline. add( m, StringType.theInstance ); add( m, BooleanType.theInstance ); add( m, NumberType.theInstance ); add( m, QnameType.theInstance ); add( m, NormalizedStringType.theInstance ); add( m, TokenType.theInstance ); add( m, NmtokenType.theInstance ); add( m, NameType.theInstance ); add( m, NcnameType.theInstance ); add( m, IntegerType.theInstance ); add( m, NegativeIntegerType.theInstance ); add( m, LongType.theInstance ); add( m, IntType.theInstance ); add( m, ShortType.theInstance ); add( m, ByteType.theInstance ); add( m, NonNegativeIntegerType.theInstance ); add( m, PositiveIntegerType.theInstance ); return m; } }
add( builtinType, FloatType.theInstance ); else if( dataTypeName.equals("double") ) add( builtinType, DoubleType.theInstance ); else if( dataTypeName.equals("duration") ) add( builtinType, DurationType.theInstance ); else if( dataTypeName.equals("dateTime") ) add( builtinType, DateTimeType.theInstance ); else if( dataTypeName.equals("time") ) add( builtinType, TimeType.theInstance ); else if( dataTypeName.equals("date") ) add( builtinType, DateType.theInstance ); else if( dataTypeName.equals("gYearMonth") ) add( builtinType, GYearMonthType.theInstance ); else if( dataTypeName.equals("gYear") ) add( builtinType, GYearType.theInstance ); else if( dataTypeName.equals("gMonthDay") ) add( builtinType, GMonthDayType.theInstance ); else if( dataTypeName.equals("gDay") ) add( builtinType, GDayType.theInstance ); else
/** creates a map that contains frequently-used built-in types */ private static Map createInitialBuiltinTypesMap() { Map m = new java.util.HashMap(); // missing types are noted inline. add( m, StringType.theInstance ); add( m, BooleanType.theInstance ); add( m, NumberType.theInstance ); add( m, QnameType.theInstance ); add( m, NormalizedStringType.theInstance ); add( m, TokenType.theInstance ); add( m, NmtokenType.theInstance ); add( m, NameType.theInstance ); add( m, NcnameType.theInstance ); add( m, IntegerType.theInstance ); add( m, NegativeIntegerType.theInstance ); add( m, LongType.theInstance ); add( m, IntType.theInstance ); add( m, ShortType.theInstance ); add( m, ByteType.theInstance ); add( m, NonNegativeIntegerType.theInstance ); add( m, PositiveIntegerType.theInstance ); return m; } }
public Datatype getType( String localTypeName ) throws DatatypeException { return DatatypeFactory.getTypeByName(localTypeName); } }
/** @deprecated */ public static XSDatatype deriveByUnion( String newTypeName, Collection memberTypes ) throws DatatypeException { return deriveByUnion("",newTypeName,memberTypes); } public static XSDatatype deriveByUnion( String nsUri, String newTypeName, Collection memberTypes )
/** * @deprecated */ public static XSDatatype deriveByList( String newTypeName, XSDatatype itemType ) throws DatatypeException { return deriveByList("",newTypeName,itemType); }
add( builtinType, FloatType.theInstance ); else if( dataTypeName.equals("double") ) add( builtinType, DoubleType.theInstance ); else if( dataTypeName.equals("duration") ) add( builtinType, DurationType.theInstance ); else if( dataTypeName.equals("dateTime") ) add( builtinType, DateTimeType.theInstance ); else if( dataTypeName.equals("time") ) add( builtinType, TimeType.theInstance ); else if( dataTypeName.equals("date") ) add( builtinType, DateType.theInstance ); else if( dataTypeName.equals("gYearMonth") ) add( builtinType, GYearMonthType.theInstance ); else if( dataTypeName.equals("gYear") ) add( builtinType, GYearType.theInstance ); else if( dataTypeName.equals("gMonthDay") ) add( builtinType, GMonthDayType.theInstance ); else if( dataTypeName.equals("gDay") ) add( builtinType, GDayType.theInstance ); else
/** creates a map that contains frequently-used built-in types */ private static Map createInitialBuiltinTypesMap() { Map m = new java.util.HashMap(); // missing types are noted inline. add( m, StringType.theInstance ); add( m, BooleanType.theInstance ); add( m, NumberType.theInstance ); add( m, QnameType.theInstance ); add( m, NormalizedStringType.theInstance ); add( m, TokenType.theInstance ); add( m, NmtokenType.theInstance ); add( m, NameType.theInstance ); add( m, NcnameType.theInstance ); add( m, IntegerType.theInstance ); add( m, NegativeIntegerType.theInstance ); add( m, LongType.theInstance ); add( m, IntType.theInstance ); add( m, ShortType.theInstance ); add( m, ByteType.theInstance ); add( m, NonNegativeIntegerType.theInstance ); add( m, PositiveIntegerType.theInstance ); return m; } }
public Datatype getType( String localTypeName ) throws DatatypeException { return DatatypeFactory.getTypeByName(localTypeName); } }
/** @deprecated */ public static XSDatatype deriveByUnion( String newTypeName, Collection memberTypes ) throws DatatypeException { return deriveByUnion("",newTypeName,memberTypes); } public static XSDatatype deriveByUnion( String nsUri, String newTypeName, Collection memberTypes )
/** * @deprecated */ public static XSDatatype deriveByList( String newTypeName, XSDatatype itemType ) throws DatatypeException { return deriveByList("",newTypeName,itemType); }
add( builtinType, FloatType.theInstance ); else if( dataTypeName.equals("double") ) add( builtinType, DoubleType.theInstance ); else if( dataTypeName.equals("duration") ) add( builtinType, DurationType.theInstance ); else if( dataTypeName.equals("dateTime") ) add( builtinType, DateTimeType.theInstance ); else if( dataTypeName.equals("time") ) add( builtinType, TimeType.theInstance ); else if( dataTypeName.equals("date") ) add( builtinType, DateType.theInstance ); else if( dataTypeName.equals("gYearMonth") ) add( builtinType, GYearMonthType.theInstance ); else if( dataTypeName.equals("gYear") ) add( builtinType, GYearType.theInstance ); else if( dataTypeName.equals("gMonthDay") ) add( builtinType, GMonthDayType.theInstance ); else if( dataTypeName.equals("gDay") ) add( builtinType, GDayType.theInstance ); else
/** creates a map that contains frequently-used built-in types */ private static Map createInitialBuiltinTypesMap() { Map m = new java.util.HashMap(); // missing types are noted inline. add( m, StringType.theInstance ); add( m, BooleanType.theInstance ); add( m, NumberType.theInstance ); add( m, QnameType.theInstance ); add( m, NormalizedStringType.theInstance ); add( m, TokenType.theInstance ); add( m, NmtokenType.theInstance ); add( m, NameType.theInstance ); add( m, NcnameType.theInstance ); add( m, IntegerType.theInstance ); add( m, NegativeIntegerType.theInstance ); add( m, LongType.theInstance ); add( m, IntType.theInstance ); add( m, ShortType.theInstance ); add( m, ByteType.theInstance ); add( m, NonNegativeIntegerType.theInstance ); add( m, PositiveIntegerType.theInstance ); return m; } }
public Datatype getType( String localTypeName ) throws DatatypeException { return DatatypeFactory.getTypeByName(localTypeName); } }
/** @deprecated */ public static XSDatatype deriveByUnion( String newTypeName, Collection memberTypes ) throws DatatypeException { return deriveByUnion("",newTypeName,memberTypes); } public static XSDatatype deriveByUnion( String nsUri, String newTypeName, Collection memberTypes )