Class XMLChoiceObjectMappingNodeValue
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.NodeValue
-
- org.eclipse.persistence.internal.oxm.MappingNodeValue
-
- org.eclipse.persistence.internal.oxm.XMLChoiceObjectMappingNodeValue
-
public class XMLChoiceObjectMappingNodeValue extends MappingNodeValue
INTERNAL:Purpose: This is how the XML Choice Collection Mapping is handled when used with the TreeObjectBuilder.
- Author:
- mmacivor
-
-
Constructor Summary
Constructors Constructor Description XMLChoiceObjectMappingNodeValue(ChoiceObjectMapping mapping, Field xmlField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattribute(UnmarshalRecord unmarshalRecord, java.lang.String URI, java.lang.String localName, java.lang.String value)The underlying choice element node value will handle attributes.voidendElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)INTERNAL:MappinggetMapping()Return the mapping associated with this node value.voidinitializeNodeValue()booleanisOwningNode(XPathFragment xPathFragment)INTERNAL:booleanisWhitespaceAware()booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)INTERNAL:booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)INTERNAL: Override this method if the NodeValue is applicable to sequenced objects.booleanmarshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)INTERNAL: This method provides an optimization in cases where the value has already been calculated.voidsetNullCapableNodeValue(XMLChoiceObjectMappingNodeValue nodeValue)voidsetXPathNode(XPathNode xPathNode)booleanstartElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)INTERNAL:-
Methods inherited from class org.eclipse.persistence.internal.oxm.MappingNodeValue
addTypeAttribute, isMappingNodeValue, updateNamespaces
-
Methods inherited from class org.eclipse.persistence.internal.oxm.NodeValue
buildSelfRecord, endElement, endSelfNodeValue, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isNullCapableValue, isUnmarshalNodeValue, isWrapperNodeValue, marshal, marshal, marshalSelfAttributes, marshalSingleValue
-
-
-
-
Constructor Detail
-
XMLChoiceObjectMappingNodeValue
public XMLChoiceObjectMappingNodeValue(ChoiceObjectMapping mapping, Field xmlField)
-
-
Method Detail
-
isOwningNode
public boolean isOwningNode(XPathFragment xPathFragment)
Description copied from class:NodeValueINTERNAL:- Overrides:
isOwningNodein classNodeValue- Returns:
-
initializeNodeValue
public void initializeNodeValue()
-
setNullCapableNodeValue
public void setNullCapableNodeValue(XMLChoiceObjectMappingNodeValue nodeValue)
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
Description copied from class:NodeValueINTERNAL:
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
Description copied from class:NodeValueINTERNAL: Override this method if the NodeValue is applicable to sequenced objects.
-
marshalSingleValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
Description copied from class:NodeValueINTERNAL: This method provides an optimization in cases where the value has already been calculated.- Specified by:
marshalSingleValuein classNodeValue- Returns:
-
endElement
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
Description copied from class:NodeValueINTERNAL:- Overrides:
endElementin classNodeValue
-
startElement
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
Description copied from class:NodeValueINTERNAL:- Overrides:
startElementin classNodeValue- Returns:
-
setXPathNode
public void setXPathNode(XPathNode xPathNode)
- Overrides:
setXPathNodein classNodeValue
-
attribute
public void attribute(UnmarshalRecord unmarshalRecord, java.lang.String URI, java.lang.String localName, java.lang.String value)
The underlying choice element node value will handle attributes.
-
getMapping
public Mapping getMapping()
Description copied from class:MappingNodeValueReturn the mapping associated with this node value.- Specified by:
getMappingin classMappingNodeValue
-
isWhitespaceAware
public boolean isWhitespaceAware()
- Overrides:
isWhitespaceAwarein classNodeValue
-
-