public class XMLBinaryDataMappingNodeValue extends NodeValue implements NullCapableValue
Purpose: This is how the XML Binary Data Mapping is handled when used with the TreeObjectBuilder.
| Constructor and Description |
|---|
XMLBinaryDataMappingNodeValue(BinaryDataMapping mapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(UnmarshalRecord unmarshalRecord,
java.lang.String URI,
java.lang.String localName,
java.lang.String value)
Handle swaRef and inline attribute cases.
|
UnmarshalRecord |
buildSelfRecord(UnmarshalRecord unmarshalRecord,
org.xml.sax.Attributes atts)
INTERNAL:
|
void |
endElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord)
INTERNAL:
|
void |
endSelfNodeValue(UnmarshalRecord unmarshalRecord,
UnmarshalRecord selfRecord,
org.xml.sax.Attributes attributes) |
javax.activation.DataHandler |
getDataHandlerForObjectValue(java.lang.Object obj,
java.lang.Class classification) |
BinaryDataMapping |
getMapping() |
boolean |
isNullCapableValue()
INTERNAL:
|
boolean |
isOwningNode(XPathFragment xPathFragment)
INTERNAL:
|
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session,
NamespaceResolver namespaceResolver)
INTERNAL:
|
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext,
XPathFragment rootFragment)
INTERNAL:
|
boolean |
marshalSingleValue(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
java.lang.Object objectValue,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext)
INTERNAL:
This method provides an optimization in cases where the value has already
been calculated.
|
boolean |
marshalSingleValue(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
java.lang.Object objectValue,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext,
XPathFragment rootFragment)
INTERNAL:
This method provides an optimization in cases where the value has already
been calculated.
|
void |
setNullValue(java.lang.Object object,
CoreSession session)
INTERNAL:
Set the null representation of the (object).
|
boolean |
startElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord,
org.xml.sax.Attributes atts)
INTERNAL:
|
endElement, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMappingNodeValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isUnmarshalNodeValue, isWhitespaceAware, isWrapperNodeValue, marshal, marshal, marshalSelfAttributes, setXPathNodepublic XMLBinaryDataMappingNodeValue(BinaryDataMapping mapping)
public boolean isOwningNode(XPathFragment xPathFragment)
NodeValueisOwningNode in class NodeValuepublic boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
NodeValuepublic boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment)
NodeValuepublic boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValuemarshalSingleValue in class NodeValuepublic boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment)
NodeValuemarshalSingleValue in class NodeValuepublic boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
NodeValuestartElement in class NodeValuepublic void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
NodeValueendElement in class NodeValuepublic void attribute(UnmarshalRecord unmarshalRecord, java.lang.String URI, java.lang.String localName, java.lang.String value)
public void setNullValue(java.lang.Object object,
CoreSession session)
NullCapableValuesetNullValue in interface NullCapableValuepublic boolean isNullCapableValue()
NodeValueisNullCapableValue in class NodeValueNullCapableValuepublic javax.activation.DataHandler getDataHandlerForObjectValue(java.lang.Object obj,
java.lang.Class classification)
public BinaryDataMapping getMapping()
public UnmarshalRecord buildSelfRecord(UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
NodeValuebuildSelfRecord in class NodeValuepublic void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, org.xml.sax.Attributes attributes)
endSelfNodeValue in class NodeValueEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference