Module org.eclipse.persistence.core
Interface ConversionManager
-
- All Known Implementing Classes:
XMLConversionManager
public interface ConversionManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringbuildBase64StringFromBytes(byte[] bytes)QNamebuildQNameFromString(String stringValue, AbstractUnmarshalRecord record)StringcollapseStringValue(String value)Removes all leading and trailing whitespaces, and replaces any sequences of whitespaces that occur in the string with a single ' ' character.ObjectconvertHexBinaryListToByteArrayList(Object sourceObject, CoreContainerPolicy containerPolicy, CoreAbstractSession session)<T> TconvertObject(Object sourceObject, Class<T> javaClass, QName schemaTypeQName)Convert the given object to the appropriate type by invoking the appropriate ConversionManager method.ObjectconvertSchemaBase64ListToByteArrayList(Object sourceObject, CoreContainerPolicy containerPolicy, CoreAbstractSession session)byte[]convertSchemaBase64ToByteArray(Object sourceObject)INTERNAL: Converts a String which is in Base64 format to a Byte[]<T> Class<T>javaType(QName schemaType)StringnormalizeStringValue(String value)Replaces any CR, Tab or LF characters in the string with a single ' ' character.QNameschemaType(Class<?> javaType)
-
-
-
Method Detail
-
buildBase64StringFromBytes
String buildBase64StringFromBytes(byte[] bytes)
-
buildQNameFromString
QName buildQNameFromString(String stringValue, AbstractUnmarshalRecord record)
-
collapseStringValue
String collapseStringValue(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
<T> T convertObject(Object sourceObject, Class<T> javaClass, 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
Object convertSchemaBase64ListToByteArrayList(Object sourceObject, CoreContainerPolicy containerPolicy, CoreAbstractSession session)
- Since:
- EclipseLink 2.6.0
-
convertHexBinaryListToByteArrayList
Object convertHexBinaryListToByteArrayList(Object sourceObject, CoreContainerPolicy containerPolicy, CoreAbstractSession session)
-
convertSchemaBase64ToByteArray
byte[] convertSchemaBase64ToByteArray(Object sourceObject)
INTERNAL: Converts a String which is in Base64 format to a Byte[]
-
javaType
<T> Class<T> javaType(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
String normalizeStringValue(String value)
Replaces any CR, Tab or LF characters in the string with a single ' ' character.- Since:
- EclipseLink 2.6.0
-
-