use of org.apache.cxf.aegis.type.xml.SourceType in project cxf by apache.
the class DefaultTypeMapping method fillStandardMappings.
private static void fillStandardMappings(TypeMapping tm, boolean defaultNillable, boolean enableMtomXmime, boolean enableJDOM) {
defaultRegister(tm, defaultNillable, BigDecimal.class, Constants.XSD_DECIMAL, new BigDecimalType());
defaultRegister(tm, defaultNillable, BigInteger.class, Constants.XSD_INTEGER, new BigIntegerType());
defaultRegister(tm, defaultNillable, Boolean.class, Constants.XSD_BOOLEAN, new BooleanType());
defaultRegister(tm, defaultNillable, Calendar.class, Constants.XSD_DATETIME, new CalendarType());
defaultRegister(tm, defaultNillable, Date.class, Constants.XSD_DATETIME, new DateTimeType());
defaultRegister(tm, defaultNillable, Float.class, Constants.XSD_FLOAT, new FloatType());
defaultRegister(tm, defaultNillable, Double.class, Constants.XSD_DOUBLE, new DoubleType());
defaultRegister(tm, defaultNillable, Integer.class, Constants.XSD_INT, new IntType());
defaultRegister(tm, defaultNillable, Long.class, Constants.XSD_LONG, new LongType());
defaultRegister(tm, defaultNillable, Object.class, Constants.XSD_ANYTYPE, new ObjectType());
defaultRegister(tm, defaultNillable, Byte.class, Constants.XSD_BYTE, new ByteType());
defaultRegister(tm, defaultNillable, Short.class, Constants.XSD_SHORT, new ShortType());
defaultRegister(tm, defaultNillable, Source.class, Constants.XSD_ANYTYPE, new SourceType());
defaultRegister(tm, defaultNillable, String.class, Constants.XSD_STRING, new StringType());
defaultRegister(tm, defaultNillable, Time.class, Constants.XSD_TIME, new TimeType());
defaultRegister(tm, defaultNillable, Timestamp.class, Constants.XSD_DATETIME, new TimestampType());
defaultRegister(tm, defaultNillable, URI.class, Constants.XSD_ANYURI, new URIType());
defaultRegister(tm, defaultNillable, XMLStreamReader.class, Constants.XSD_ANYTYPE, new XMLStreamReaderType());
defaultRegister(tm, defaultNillable, boolean.class, Constants.XSD_BOOLEAN, new BooleanType());
defaultRegister(tm, defaultNillable, byte[].class, Constants.XSD_BASE64, new Base64Type());
defaultRegister(tm, defaultNillable, double.class, Constants.XSD_DOUBLE, new DoubleType());
defaultRegister(tm, defaultNillable, float.class, Constants.XSD_FLOAT, new FloatType());
defaultRegister(tm, defaultNillable, int.class, Constants.XSD_INT, new IntType());
defaultRegister(tm, defaultNillable, short.class, Constants.XSD_SHORT, new ShortType());
defaultRegister(tm, defaultNillable, byte.class, Constants.XSD_BYTE, new ByteType());
defaultRegister(tm, defaultNillable, long.class, Constants.XSD_LONG, new LongType());
defaultRegister(tm, defaultNillable, java.sql.Date.class, Constants.XSD_DATETIME, new SqlDateType());
defaultRegister(tm, defaultNillable, java.sql.Date.class, Constants.XSD_DATE, new SqlDateType());
defaultRegister(tm, defaultNillable, Number.class, Constants.XSD_DECIMAL, new BigDecimalType());
QName mtomBase64 = Constants.XSD_BASE64;
if (enableMtomXmime) {
mtomBase64 = AbstractXOPType.XML_MIME_BASE64;
}
defaultRegister(tm, defaultNillable, DataSource.class, mtomBase64, new DataSourceType(enableMtomXmime, null));
defaultRegister(tm, defaultNillable, DataHandler.class, mtomBase64, new DataHandlerType(enableMtomXmime, null));
defaultRegister(tm, defaultNillable, Document.class, Constants.XSD_ANYTYPE, new DocumentType());
if (enableJDOM) {
registerJDOMTypes(tm, defaultNillable);
}
}
Aggregations