Module org.eclipse.persistence.core
Class ChoiceUnmarshalContext
java.lang.Object
org.eclipse.persistence.internal.oxm.ChoiceUnmarshalContext
- All Implemented Interfaces:
UnmarshalContext
Allow the unmarshal context to be wrapped. This is necessary so that choice
mappings with a converter can convert the result of the nested mapping.
-
Constructor Summary
ConstructorDescriptionChoiceUnmarshalContext
(UnmarshalContext unmarshalContext, XMLConverterMapping converter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeValue
(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value) When a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.void
addAttributeValue
(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.void
characters
(UnmarshalRecord unmarshalRecord) An event indicating that characters has been called on the unmarshalRecord.void
endElement
(UnmarshalRecord unmarshalRecord) An event indicating that endElement has been called on the unmarshalRecord.protected Object
getValue
(Object value, UnmarshalRecord unmarshalRecord) void
void
setAttributeValue
(UnmarshalRecord unmarshalRecord, Object value, Mapping mapping) The UnmarshalContext is responsible for assigning values to the object being built.void
startElement
(UnmarshalRecord unmarshalRecord) An event indicating that startElement has been called on the unmarshalRecord.void
unmappedContent
(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.
-
Constructor Details
-
ChoiceUnmarshalContext
-
-
Method Details
-
addAttributeValue
public void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value) Description copied from interface:UnmarshalContext
When a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.- Specified by:
addAttributeValue
in interfaceUnmarshalContext
- Parameters:
containerValue
- 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:UnmarshalContext
When a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.- Specified by:
addAttributeValue
in interfaceUnmarshalContext
- Parameters:
containerValue
- 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,
-
characters
Description copied from interface:UnmarshalContext
An event indicating that characters has been called on the unmarshalRecord.- Specified by:
characters
in interfaceUnmarshalContext
- Parameters:
unmarshalRecord
- The UnmarshalRecord that received the characters call.
-
endElement
Description copied from interface:UnmarshalContext
An event indicating that endElement has been called on the unmarshalRecord.- Specified by:
endElement
in interfaceUnmarshalContext
- Parameters:
unmarshalRecord
- The UnmarshalRecord that received the endElement call.
-
reference
- Specified by:
reference
in interfaceUnmarshalContext
-
setAttributeValue
Description copied from interface:UnmarshalContext
The UnmarshalContext is responsible for assigning values to the object being built.- Specified by:
setAttributeValue
in interfaceUnmarshalContext
-
startElement
Description copied from interface:UnmarshalContext
An event indicating that startElement has been called on the unmarshalRecord.- Specified by:
startElement
in interfaceUnmarshalContext
- Parameters:
unmarshalRecord
- The UnmarshalRecord that received the startElement call.
-
unmappedContent
Description copied from interface:UnmarshalContext
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.- Specified by:
unmappedContent
in interfaceUnmarshalContext
- Parameters:
unmarshalRecord
- The UnmarshalRecord that encountered the unmapped content .
-
getValue
-