public class XMLJavaTypeConverter extends XMLConverterAdapter
XmlAdapter,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Class |
boundType |
protected DatabaseMapping |
mapping |
protected CoreConverter |
nestedConverter |
protected QName |
schemaType |
protected Class |
valueType |
protected jakarta.xml.bind.annotation.adapters.XmlAdapter |
xmlAdapter |
protected Class |
xmlAdapterClass |
protected String |
xmlAdapterClassName |
| Constructor and Description |
|---|
XMLJavaTypeConverter()
The default constructor.
|
XMLJavaTypeConverter(Class xmlAdapterClass)
This constructor takes the XmlAdapter class to be used with this
converter.
|
XMLJavaTypeConverter(Class xmlAdapterClass,
QName schemaType)
This constructor takes the XmlAdapter class to be used with this
converter, as well as a schema type to be used during the conversion
operation.
|
XMLJavaTypeConverter(String xmlAdapterClassName)
This constructor takes an adapter class name.
|
XMLJavaTypeConverter(String xmlAdapterClassName,
QName schemaType)
This constructor takes the XmlAdapter class name to be used with this
converter (loaded during initialization), as well as a schema type to
be used during the conversion operation.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convertDataValueToObjectValue(Object dataValue,
Session session,
XMLUnmarshaller unmarshaller)
Wraps the XmlAdapter unmarshal method.
|
Object |
convertObjectValueToDataValue(Object objectValue,
Session session,
XMLMarshaller marshaller)
Wraps the XmlAdapter marshal method.
|
CoreConverter |
getNestedConverter()
Get the nested converter to that is used in conjunction with the adapter.
|
QName |
getSchemaType()
Get the schema type to be used during conversion.
|
Class |
getXmlAdapterClass()
Return the XmlAdapter class for this converter.
|
String |
getXmlAdapterClassName()
Return the XmlAdapter class name for this converter.
|
void |
initialize(DatabaseMapping mapping,
Session session)
Figure out the BoundType and ValueType for the XmlAdapter class, then
either create an instance of the XmlAdapter, or if an instance is set
on the marshaller, use it.
|
boolean |
isMutable()
Satisfy the interface.
|
void |
setNestedConverter(CoreConverter nestedConverter)
Set a nested converter to be used in conjunction with the adapter.
|
void |
setSchemaType(QName qname)
Set the schema type to be used during conversion - if one is
required.
|
void |
setXmlAdapterClass(Class xmlAdapterClass)
Set the XmlAdapter class to be used with this converter.
|
void |
setXmlAdapterClassName(String xmlAdapterClassName)
Set the XmlAdapter class to be used with this converter.
|
convertDataValueToObjectValue, convertObjectValueToDataValueprotected Class boundType
protected Class valueType
protected Class xmlAdapterClass
protected String xmlAdapterClassName
protected jakarta.xml.bind.annotation.adapters.XmlAdapter xmlAdapter
protected QName schemaType
protected DatabaseMapping mapping
protected CoreConverter nestedConverter
public XMLJavaTypeConverter()
public XMLJavaTypeConverter(Class xmlAdapterClass)
xmlAdapterClass - public XMLJavaTypeConverter(String xmlAdapterClassName)
xmlAdapterClassName - public XMLJavaTypeConverter(Class xmlAdapterClass, QName schemaType)
xmlAdapterClass - schemaType - public XMLJavaTypeConverter(String xmlAdapterClassName, QName schemaType)
xmlAdapterClassName - schemaType - public Object convertDataValueToObjectValue(Object dataValue, Session session, XMLUnmarshaller unmarshaller)
public Object convertObjectValueToDataValue(Object objectValue, Session session, XMLMarshaller marshaller)
public QName getSchemaType()
public Class getXmlAdapterClass()
public String getXmlAdapterClassName()
public void initialize(DatabaseMapping mapping, Session session)
mapping - session - public boolean isMutable()
public void setSchemaType(QName qname)
public void setXmlAdapterClass(Class xmlAdapterClass)
xmlAdapterClass - public void setXmlAdapterClassName(String xmlAdapterClassName)
xmlAdapterClassName - public CoreConverter getNestedConverter()
public void setNestedConverter(CoreConverter nestedConverter)
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.