Interface UnmarshalContext
-
- All Known Implementing Classes:
ChoiceUnmarshalContext,ObjectUnmarshalContext,SequencedUnmarshalContext
public interface UnmarshalContextThe UnmarshalContext allows mappings to be unmarshalled differently depending on the type of object. An UnmarshalRecord maintains a reference to a single UnmarshalContext.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, java.lang.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, java.lang.Object value, java.lang.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.voidreference(Reference reference)voidsetAttributeValue(UnmarshalRecord unmarshalRecord, java.lang.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
-
startElement
void startElement(UnmarshalRecord unmarshalRecord)
An event indicating that startElement has been called on the unmarshalRecord.- Parameters:
unmarshalRecord- The UnmarshalRecord that received the startElement call.
-
characters
void characters(UnmarshalRecord unmarshalRecord)
An event indicating that characters has been called on the unmarshalRecord.- Parameters:
unmarshalRecord- The UnmarshalRecord that received the characters call.
-
endElement
void endElement(UnmarshalRecord unmarshalRecord)
An event indicating that endElement has been called on the unmarshalRecord.- Parameters:
unmarshalRecord- The UnmarshalRecord that received the endElement call.
-
setAttributeValue
void setAttributeValue(UnmarshalRecord unmarshalRecord, java.lang.Object value, Mapping mapping)
The UnmarshalContext is responsible for assigning values to the object being built.- Parameters:
unmarshalRecord-value-mapping-
-
addAttributeValue
void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, java.lang.Object value)
When a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.- Parameters:
unmarshalRecord-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
void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, java.lang.Object value, java.lang.Object collection)
When a collection mapping is processed the UnmarshalContext is responsible for handling the values one at a time.- Parameters:
unmarshalRecord-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,collection-
-
reference
void reference(Reference reference)
-
unmappedContent
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.- Parameters:
unmarshalRecord- The UnmarshalRecord that encountered the unmapped content .
-
-