Purpose: Primarily used to convert objects from a given XML Schema type to a different type in Java. Uses a singleton instance
| Modifier and Type | Field and Description |
|---|---|
| protected DatatypeFactory | |
| protected static Map | |
| protected static XMLConversionManager | |
| protected static Map | |
| protected static final String | |
| protected static final String | |
| private static final char | |
| protected TimeZone | |
| protected boolean | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | appendMillis(String string, long time)
Convenience method that appends millisecond values from a given time to a given string. |
| private String | appendNanos(String string, Timestamp ts)
Convenience method that appends nanosecond values from a given time to a given string. |
| private String | |
| private byte[] | |
| public String | |
| public String | |
| protected String | |
| private static Map | |
| public QName | buildQNameFromString(String stringValue, AbstractUnmarshalRecord<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, FIELD extends CoreField, UNMARSHALLER extends Unmarshaller<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, CONTEXT extends Context<ABSTRACT_SESSION extends CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>>, DESCRIPTOR extends Descriptor<?, ?, ?, ?, ?, NAMESPACE_RESOLVER, ?, ?, ?, ?>, FIELD extends Field, NAMESPACE_RESOLVER extends NamespaceResolver, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION extends CoreSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager>, SESSION_EVENT_LISTENER extends CoreSessionEventListener>, DESCRIPTOR extends Descriptor, ID_RESOLVER extends IDResolver, MEDIA_TYPE extends MediaType, ROOT extends Root, UNMARSHALLER_HANDLER extends UnmarshallerHandler, UNMARSHALLER_LISTENER extends Unmarshaller.
Implements org. |
| private static Map | |
| public Object | |
| public String | collapseStringValue(String value)
Implements org. |
| public String | |
| public Object | convertHexBinaryListToByteArrayList(Object sourceObject, CoreContainerPolicy<ABSTRACT_SESSION extends CoreAbstractSession> containerPolicy, CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>> session)
Implements org. |
| public String | |
| public <T> T | Returns: - the newly converted object- will always be a string if read from XML sourceObject, Class<T> - the class that the object must be converted to javaClass)Overrides org. |
| public <T> T | Returns: - the newly converted object- will always be a string if read from XML sourceObject, Class<T> - the class that the object must be converted to javaClass, QName - the XML schema that the object is being converted from schemaTypeQName)Implements org. |
| protected BigDecimal | convertObjectToBigDecimal(Object
Valid instance of String, BigInteger, any Number sourceObject)Overrides org. |
| protected BigInteger | convertObjectToBigInteger(Object
Valid instance of String, BigDecimal, or any Number sourceObject)Overrides org. |
| protected Boolean | convertObjectToBoolean(Object sourceObject)
Overrides org. |
| protected Byte | convertObjectToByte(Object
Valid instance of String or any Number sourceObject)Overrides org. |
| protected Calendar | convertObjectToCalendar(Object
Valid instance of java.util.Date, String, java.sql.Timestamp, or Long sourceObject)Overrides org. |
| private Calendar | |
| protected Character | convertObjectToChar(Object sourceObject, QName schemaTypeQName)
Build a valid instance of Character from the provided sourceObject. |
| protected Character | convertObjectToChar(Object
Valid instance of String or any Number sourceObject)Overrides org. |
| protected Date | convertObjectToDate(Object
Object of type java.sql.Timestamp, java.util.Date, String or Long sourceObject)Overrides org. |
| protected Double | convertObjectToDouble(Object
Object of type String or Number. sourceObject)Overrides org. |
| protected Duration | convertObjectToDuration(Object sourceObject)
Build a valid instance of Duration from the provided sourceObject. |
| protected Float | convertObjectToFloat(Object sourceObject)
Overrides org. |
| protected Integer | convertObjectToInteger(Object sourceObject)
Overrides org. |
| protected Long | convertObjectToLong(Object sourceObject)
Overrides org. |
| protected BigDecimal | convertObjectToNumber(Object sourceObject)
Overrides org. |
| protected QName | |
| protected Short | convertObjectToShort(Object sourceObject)
Overrides org. |
| protected Date | |
| protected Time | |
| protected String | convertObjectToString(Object sourceObject)
Overrides org. |
| protected String | |
| protected Timestamp | |
| protected URI | |
| private Date | |
| protected XMLGregorianCalendar | convertObjectToXMLGregorianCalendar(Object sourceObject, QName schemaTypeQName)
Build a valid instance of XMLGregorianCalendar from the provided sourceObject. |
| protected XMLGregorianCalendar | convertObjectToXMLGregorianCalendar(Object sourceObject)
Build a valid instance of XMLGregorianCalendar from the provided sourceObject. |
| public Object | convertSchemaBase64ListToByteArrayList(Object sourceObject, CoreContainerPolicy<ABSTRACT_SESSION extends CoreAbstractSession> containerPolicy, CoreAbstractSession<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, PLATFORM extends CorePlatform<CONVERSION_MANAGER extends CoreConversionManager>, PROJECT extends CoreProject<DESCRIPTOR extends CoreDescriptor<ATTRIBUTE_GROUP extends CoreAttributeGroup, DESCRIPTOR_EVENT_MANAGER extends CoreDescriptorEventManager, FIELD extends CoreField, INHERITANCE_POLICY extends CoreInheritancePolicy, INSTANTIATION_POLICY extends CoreInstantiationPolicy, LIST extends List<E>, OBJECT_BUILDER extends CoreObjectBuilder>, LOGIN extends CoreLogin<PLATFORM extends CorePlatform>, SESSION extends CoreSession>, SESSION_EVENT_MANAGER extends CoreSessionEventManager<SESSION_EVENT_LISTENER extends CoreSessionEventListener>> session)
Implements org. |
| public byte[] | convertSchemaBase64ToByteArray(Object sourceObject)
Implements org. |
| protected Byte[] | |
| public Calendar | |
| public Date | |
| public Duration | |
| protected File | |
| protected List | |
| public <T> Collection | Returns: - the newly converted object- will always be a string if read from XML sourceObject, Class<T> - the type of the elements contained in the list elementType, ContainerPolicy containerPolicy, QName schemaType)Convert the given sourceObject (String) to the appropriate collection type specified by the containerPolicy, using the elementType to properly convert each element of the list. |
| protected Timestamp | |
| public Timestamp | |
| public XMLGregorianCalendar | |
| public XMLGregorianCalendar | convertStringToXMLGregorianCalendar(String sourceString)
Return an XMLGregorianCalander created with a given date string |
| protected DatatypeFactory | |
| public static Map | |
| public static XMLConversionManager | |
| public static Map | |
| public TimeZone | getTimeZone()
Implements org. |
| private boolean | |
| public boolean | |
| private boolean | |
| public <T> Class | Returns: the Java class for the XML schema type.The type you want to find a corresponding Java class for. schemaType)Implements org. |
| public String | normalizeStringValue(String value)
Implements org. |
| private QName | |
| public QName | Returns: the schema type for the Java class.The type you want to find a corresponding schema type for. javaType)Implements org. |
| public void | setTimeZone(TimeZone timeZone)
The specified TimeZone will be used for all String to date object conversions. |
| public void | setTimeZoneQualified(boolean timeZoneQualified)
Specify if Specify if when date objects are converted to Strings in the XML Schema time or dateTime format |
| public String | |
| private String | |
| private String | stringFromDate(Date sourceDate)
This method returns a dateTime string representing a given java.util.Date. |
| public String | stringFromDate(Date sourceDate, QName schemaType)
This method returns a string representing a given java.util.Date based on a given schema type QName. |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | |
| private String | stringFromTimestamp(Timestamp sourceDate)
This method returns a dateTime string representing a given Timestamp. |
| private String | stringFromTimestamp(Timestamp sourceDate, QName schemaType)
This method returns a string representing a given Timestamp based on a given schema type QName. |
| private String | |
| private String | |
| private Calendar | |
| private String | truncateMillis(String xmlFormat)
Truncate any trailing zeros from the millisecond portion of a given string. |