|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.oxm.mappings.converters.XMLListConverter
public class XMLListConverter
Purpose: Provides an implementation of Converter that can be used to convert a collection of Objects into a space separated list of Strings and back. Used with XMLCompositeDirectCollectionMapping to implement the behaviour of the XmlList annotation
XMLCompositeDirectCollectionMapping
,
XMLConverter
,
Converter
,
Serialized FormConstructor Summary | |
---|---|
XMLListConverter()
|
Method Summary | |
---|---|
java.lang.Object |
convertDataValueToObjectValue(java.lang.Object dataValue,
Session session)
PUBLIC: Convert the databases' data representation of the value to the object's representation. |
java.lang.Object |
convertObjectValueToDataValue(java.lang.Object objectValue,
Session session)
PUBLIC: Convert the object's representation of the value to the databases' data representation. |
java.lang.Class |
getObjectClass()
Get the Class of the elements of this collection's "sub-collection". |
java.lang.String |
getObjectClassName()
Get the Class name of the elements of this collection's "sub-collection". |
void |
initialize(DatabaseMapping mapping,
Session session)
PUBLIC: Allow for any initialization. |
boolean |
isMutable()
PUBLIC: If the converter converts the value to a mutable value, i.e. |
void |
setObjectClass(java.lang.Class aClass)
Set the Class of the elements of this collection's "sub-collection". |
void |
setObjectClassName(java.lang.String aClassName)
Set the Class name of the elements of this collection's "sub-collection". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLListConverter()
Method Detail |
---|
public java.lang.Object convertDataValueToObjectValue(java.lang.Object dataValue, Session session)
Converter
convertDataValueToObjectValue
in interface Converter
public java.lang.Object convertObjectValueToDataValue(java.lang.Object objectValue, Session session)
Converter
convertObjectValueToDataValue
in interface Converter
public void initialize(DatabaseMapping mapping, Session session)
Converter
initialize
in interface Converter
public boolean isMutable()
Converter
isMutable
in interface Converter
public java.lang.String getObjectClassName()
public void setObjectClassName(java.lang.String aClassName)
aClassName
- the name of the Class of the elements of this collection's "sub-collection"public java.lang.Class getObjectClass()
public void setObjectClass(java.lang.Class aClass)
aClass
- the Class of the elements of this collection's "sub-collection"
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |