Module org.eclipse.persistence.core
Class ObjectUnmarshalContext
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.ObjectUnmarshalContext
-
- All Implemented Interfaces:
UnmarshalContext
public class ObjectUnmarshalContext extends Object implements UnmarshalContext
An implementation of UnmarshalContext for handling plain old java objects that are mapped to XML.
-
-
Constructor Summary
Constructors Constructor Description ObjectUnmarshalContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value)When a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.voidaddAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value, Object collection)When a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.voidcharacters(UnmarshalRecord unmarshalRecord)An event indicating that characters has been called on the unmarshalRecord.voidendElement(UnmarshalRecord unmarshalRecord)An event indicating that endElement has been called on the unmarshalRecord.static ObjectUnmarshalContextgetInstance()voidreference(Reference reference)voidsetAttributeValue(UnmarshalRecord unmarshalRecord, Object value, Mapping mapping)The UnmarshalContext is responsible for assigning values to the object being built.voidstartElement(UnmarshalRecord unmarshalRecord)An event indicating that startElement has been called on the unmarshalRecord.voidunmappedContent(UnmarshalRecord unmarshalRecord)This method is called when unmapped content (XML content that does not correspond to any specified mapping, policy, etc.) is encountered during the unmarshal process.
-
-
-
Method Detail
-
getInstance
public static ObjectUnmarshalContext getInstance()
-
startElement
public void startElement(UnmarshalRecord unmarshalRecord)
Description copied from interface:UnmarshalContextAn event indicating that startElement has been called on the unmarshalRecord.- Specified by:
startElementin interfaceUnmarshalContext- Parameters:
unmarshalRecord- The UnmarshalRecord that received the startElement call.
-
characters
public void characters(UnmarshalRecord unmarshalRecord)
Description copied from interface:UnmarshalContextAn event indicating that characters has been called on the unmarshalRecord.- Specified by:
charactersin interfaceUnmarshalContext- Parameters:
unmarshalRecord- The UnmarshalRecord that received the characters call.
-
endElement
public void endElement(UnmarshalRecord unmarshalRecord)
Description copied from interface:UnmarshalContextAn event indicating that endElement has been called on the unmarshalRecord.- Specified by:
endElementin interfaceUnmarshalContext- Parameters:
unmarshalRecord- The UnmarshalRecord that received the endElement call.
-
setAttributeValue
public void setAttributeValue(UnmarshalRecord unmarshalRecord, Object value, Mapping mapping)
Description copied from interface:UnmarshalContextThe UnmarshalContext is responsible for assigning values to the object being built.- Specified by:
setAttributeValuein interfaceUnmarshalContext
-
addAttributeValue
public void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value)
Description copied from interface:UnmarshalContextWhen a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.- Specified by:
addAttributeValuein interfaceUnmarshalContextcontainerValue- A container object such as a java.util.ArrayList, to which the value will be added.value- The value to be added to the container,
-
addAttributeValue
public void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value, Object collection)
Description copied from interface:UnmarshalContextWhen a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.- Specified by:
addAttributeValuein interfaceUnmarshalContextcontainerValue- A container object such as a java.util.ArrayList, to which the value will be added.value- The value to be added to the container,
-
reference
public void reference(Reference reference)
- Specified by:
referencein interfaceUnmarshalContext
-
unmappedContent
public void unmappedContent(UnmarshalRecord unmarshalRecord)
Description copied from interface:UnmarshalContextThis method is called when unmapped content (XML content that does not correspond to any specified mapping, policy, etc.) is encountered during the unmarshal process.- Specified by:
unmappedContentin interfaceUnmarshalContext- Parameters:
unmarshalRecord- The UnmarshalRecord that encountered the unmapped content .
-
-