use of org.apache.cxf.aegis.type.basic.BigIntegerType in project cxf by apache.
the class DefaultTypeMapping method createSoap11TypeMapping.
/**
* Create a type mapping object with a stock set of mappings, including the SOAP 1.1 'encoded'
* types.
* @param defaultNillable whether elements are nillable by default.
* @param enableMtomXmime whether to enable XMIME annotations with MTOM.
* @param enableJDOM whether to add mappings for JDOM.
* @return
*/
public static DefaultTypeMapping createSoap11TypeMapping(boolean defaultNillable, boolean enableMtomXmime, boolean enableJDOM) {
// Create a AegisType Mapping for SOAP 1.1 Encoding
DefaultTypeMapping soapTM = new DefaultTypeMapping(Soap11.SOAP_ENCODING_URI);
fillStandardMappings(soapTM, defaultNillable, enableMtomXmime, enableJDOM);
defaultRegister(soapTM, defaultNillable, boolean.class, Soap11.ENCODED_BOOLEAN, new BooleanType());
defaultRegister(soapTM, defaultNillable, char.class, Soap11.ENCODED_CHAR, new CharacterType());
defaultRegister(soapTM, defaultNillable, int.class, Soap11.ENCODED_INT, new IntType());
defaultRegister(soapTM, defaultNillable, short.class, Soap11.ENCODED_SHORT, new ShortType());
defaultRegister(soapTM, defaultNillable, double.class, Soap11.ENCODED_DOUBLE, new DoubleType());
defaultRegister(soapTM, defaultNillable, float.class, Soap11.ENCODED_FLOAT, new FloatType());
defaultRegister(soapTM, defaultNillable, long.class, Soap11.ENCODED_LONG, new LongType());
defaultRegister(soapTM, defaultNillable, char.class, Soap11.ENCODED_CHAR, new CharacterType());
defaultRegister(soapTM, defaultNillable, Character.class, Soap11.ENCODED_CHAR, new CharacterType());
defaultRegister(soapTM, defaultNillable, String.class, Soap11.ENCODED_STRING, new StringType());
defaultRegister(soapTM, defaultNillable, Boolean.class, Soap11.ENCODED_BOOLEAN, new BooleanType());
defaultRegister(soapTM, defaultNillable, Integer.class, Soap11.ENCODED_INT, new IntType());
defaultRegister(soapTM, defaultNillable, Short.class, Soap11.ENCODED_SHORT, new ShortType());
defaultRegister(soapTM, defaultNillable, Double.class, Soap11.ENCODED_DOUBLE, new DoubleType());
defaultRegister(soapTM, defaultNillable, Float.class, Soap11.ENCODED_FLOAT, new FloatType());
defaultRegister(soapTM, defaultNillable, Long.class, Soap11.ENCODED_LONG, new LongType());
defaultRegister(soapTM, defaultNillable, Date.class, Soap11.ENCODED_DATETIME, new DateTimeType());
defaultRegister(soapTM, defaultNillable, java.sql.Date.class, Soap11.ENCODED_DATETIME, new SqlDateType());
defaultRegister(soapTM, defaultNillable, Calendar.class, Soap11.ENCODED_DATETIME, new CalendarType());
defaultRegister(soapTM, defaultNillable, byte[].class, Soap11.ENCODED_BASE64, new Base64Type());
defaultRegister(soapTM, defaultNillable, BigDecimal.class, Soap11.ENCODED_DECIMAL, new BigDecimalType());
defaultRegister(soapTM, defaultNillable, BigInteger.class, Soap11.ENCODED_INTEGER, new BigIntegerType());
return soapTM;
}
use of org.apache.cxf.aegis.type.basic.BigIntegerType 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