public class XMLFragmentMappingNodeValue extends MappingNodeValue implements NullCapableValue
Purpose: This is how the XML Fragment Collection Mapping is handled when used with the TreeObjectBuilder.
Constructor and Description |
---|
XMLFragmentMappingNodeValue(XMLFragmentMapping xmlFragmentMapping) |
Modifier and Type | Method and Description |
---|---|
void |
attribute(UnmarshalRecord unmarshalRecord,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
INTERNAL:
|
void |
endElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord)
INTERNAL:
|
void |
endSelfNodeValue(UnmarshalRecord unmarshalRecord,
UnmarshalRecord selfRecord,
org.xml.sax.Attributes atts) |
XMLFragmentMapping |
getMapping()
Return the mapping associated with this node value.
|
boolean |
isNullCapableValue()
INTERNAL:
|
boolean |
isOwningNode(XPathFragment xPathFragment)
INTERNAL:
|
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
AbstractSession session,
NamespaceResolver namespaceResolver)
INTERNAL:
|
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
AbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext)
INTERNAL:
Override this method if the NodeValue is applicable to sequenced objects.
|
boolean |
marshalSelfAttributes(XPathFragment pathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
AbstractSession session,
NamespaceResolver namespaceResolver,
XMLMarshaller marshaller)
INTERNAL:
Marshal any 'self' mapped attributes.
|
boolean |
marshalSingleValue(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
java.lang.Object attributeValue,
AbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext)
INTERNAL:
This method provides an optimization in cases where the value has already
been calculated.
|
void |
setNullValue(java.lang.Object object,
Session session)
INTERNAL:
Set the null representation of the (object).
|
boolean |
startElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord,
org.xml.sax.Attributes atts)
INTERNAL:
|
isMappingNodeValue
buildSelfRecord, endElement, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isUnmarshalNodeValue, isWhitespaceAware, isWrapperNodeValue, marshal, marshal, marshalSingleValue, setXPathNode
public XMLFragmentMappingNodeValue(XMLFragmentMapping xmlFragmentMapping)
public boolean isOwningNode(XPathFragment xPathFragment)
NodeValue
isOwningNode
in class NodeValue
public void setNullValue(java.lang.Object object, Session session)
NullCapableValue
setNullValue
in interface NullCapableValue
public boolean isNullCapableValue()
NodeValue
isNullCapableValue
in class NodeValue
NullCapableValue
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, AbstractSession session, NamespaceResolver namespaceResolver)
NodeValue
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValue
public boolean marshalSelfAttributes(XPathFragment pathFragment, MarshalRecord marshalRecord, java.lang.Object object, AbstractSession session, NamespaceResolver namespaceResolver, XMLMarshaller marshaller)
NodeValue
marshalSelfAttributes
in class NodeValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object attributeValue, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValue
marshalSingleValue
in class NodeValue
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
NodeValue
startElement
in class NodeValue
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
NodeValue
endElement
in class NodeValue
public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, org.xml.sax.Attributes atts)
endSelfNodeValue
in class NodeValue
public void attribute(UnmarshalRecord unmarshalRecord, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
NodeValue
public XMLFragmentMapping getMapping()
MappingNodeValue
getMapping
in class MappingNodeValue
EclipseLink 2.4.2, "build v20130514-5956486" API Reference