Interface ConversionManager
-
- All Known Implementing Classes:
XMLConversionManager
public interface ConversionManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringbuildBase64StringFromBytes(byte[] bytes)javax.xml.namespace.QNamebuildQNameFromString(java.lang.String stringValue, AbstractUnmarshalRecord record)java.lang.StringcollapseStringValue(java.lang.String value)Removes all leading and trailing whitespaces, and replaces any sequences of whitespaces that occur in the string with a single ' ' character.java.lang.ObjectconvertHexBinaryListToByteArrayList(java.lang.Object sourceObject, CoreContainerPolicy containerPolicy, CoreAbstractSession session)java.lang.ObjectconvertObject(java.lang.Object sourceObject, java.lang.Class javaClass, javax.xml.namespace.QName schemaTypeQName)Convert the given object to the appropriate type by invoking the appropriate ConversionManager method.java.lang.ObjectconvertSchemaBase64ListToByteArrayList(java.lang.Object sourceObject, CoreContainerPolicy containerPolicy, CoreAbstractSession session)byte[]convertSchemaBase64ToByteArray(java.lang.Object sourceObject)INTERNAL: Converts a String which is in Base64 format to a Byte[]java.lang.Class<?>javaType(javax.xml.namespace.QName schemaType)java.lang.StringnormalizeStringValue(java.lang.String value)Replaces any CR, Tab or LF characters in the string with a single ' ' character.javax.xml.namespace.QNameschemaType(java.lang.Class<?> javaType)
-
-
-
Method Detail
-
buildBase64StringFromBytes
java.lang.String buildBase64StringFromBytes(byte[] bytes)
-
buildQNameFromString
javax.xml.namespace.QName buildQNameFromString(java.lang.String stringValue, AbstractUnmarshalRecord record)
-
collapseStringValue
java.lang.String collapseStringValue(java.lang.String value)
Removes all leading and trailing whitespaces, and replaces any sequences of whitespaces that occur in the string with a single ' ' character.- Since:
- EclipseLink 2.6.0
-
convertObject
java.lang.Object convertObject(java.lang.Object sourceObject, java.lang.Class javaClass, javax.xml.namespace.QName schemaTypeQName)Convert the given object to the appropriate type by invoking the appropriate ConversionManager method.- Parameters:
sourceObject- - will always be a string if read from XMLjavaClass- - the class that the object must be converted toschemaTypeQName- - the XML schema that the object is being converted from- Returns:
- - the newly converted object
-
convertSchemaBase64ListToByteArrayList
java.lang.Object convertSchemaBase64ListToByteArrayList(java.lang.Object sourceObject, CoreContainerPolicy containerPolicy, CoreAbstractSession session)- Since:
- EclipseLink 2.6.0
-
convertHexBinaryListToByteArrayList
java.lang.Object convertHexBinaryListToByteArrayList(java.lang.Object sourceObject, CoreContainerPolicy containerPolicy, CoreAbstractSession session)
-
convertSchemaBase64ToByteArray
byte[] convertSchemaBase64ToByteArray(java.lang.Object sourceObject)
INTERNAL: Converts a String which is in Base64 format to a Byte[]
-
javaType
java.lang.Class<?> javaType(javax.xml.namespace.QName schemaType)
- Parameters:
schemaType- The type you want to find a corresponding Java class for.- Returns:
- the Java class for the XML schema type.
- Since:
- EclipseLink 2.6.0
-
normalizeStringValue
java.lang.String normalizeStringValue(java.lang.String value)
Replaces any CR, Tab or LF characters in the string with a single ' ' character.- Since:
- EclipseLink 2.6.0
-
schemaType
javax.xml.namespace.QName schemaType(java.lang.Class<?> javaType)
- Parameters:
javaType- The type you want to find a corresponding schema type for.- Returns:
- the schema type for the Java class.
- Since:
- EclipseLink 2.6.0
-
-