Module org.eclipse.persistence.core
Class XMLBinaryDataMappingNodeValue
java.lang.Object
org.eclipse.persistence.internal.oxm.NodeValue
org.eclipse.persistence.internal.oxm.XMLBinaryDataMappingNodeValue
- All Implemented Interfaces:
NullCapableValue
INTERNAL:
Purpose: This is how the XML Binary Data Mapping is handled when used with the TreeObjectBuilder.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attribute
(UnmarshalRecord unmarshalRecord, String URI, String localName, String value) Handle swaRef and inline attribute cases.buildSelfRecord
(UnmarshalRecord unmarshalRecord, Attributes atts) INTERNAL:void
endElement
(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) INTERNAL:void
endSelfNodeValue
(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes) getDataHandlerForObjectValue
(Object obj, Class<?> classification) protected String
getValueToWrite
(QName schemaType, Object value, CoreAbstractSession session) boolean
INTERNAL:boolean
isOwningNode
(XPathFragment xPathFragment) INTERNAL:boolean
marshal
(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) INTERNAL:boolean
marshal
(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment) INTERNAL:boolean
marshalSingleValue
(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, 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, Object object, 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
(Object object, CoreSession session) INTERNAL: Set the null representation of the (object).boolean
startElement
(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) INTERNAL:Methods inherited from class org.eclipse.persistence.internal.oxm.NodeValue
endElement, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMappingNodeValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isUnmarshalNodeValue, isWhitespaceAware, isWrapperNodeValue, marshal, marshal, marshalSelfAttributes, setXPathNode
-
Constructor Details
-
XMLBinaryDataMappingNodeValue
-
-
Method Details
-
getValueToWrite
-
isOwningNode
Description copied from class:NodeValue
INTERNAL:- Overrides:
isOwningNode
in classNodeValue
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) Description copied from class:NodeValue
INTERNAL: -
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment) Description copied from class:NodeValue
INTERNAL: -
marshalSingleValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) Description copied from class:NodeValue
INTERNAL: This method provides an optimization in cases where the value has already been calculated.- Specified by:
marshalSingleValue
in classNodeValue
-
marshalSingleValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment) Description copied from class:NodeValue
INTERNAL: This method provides an optimization in cases where the value has already been calculated.- Overrides:
marshalSingleValue
in classNodeValue
-
startElement
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) Description copied from class:NodeValue
INTERNAL:- Overrides:
startElement
in classNodeValue
-
endElement
Description copied from class:NodeValue
INTERNAL:- Overrides:
endElement
in classNodeValue
-
attribute
Handle swaRef and inline attribute cases. -
setNullValue
Description copied from interface:NullCapableValue
INTERNAL: Set the null representation of the (object).- Specified by:
setNullValue
in interfaceNullCapableValue
-
isNullCapableValue
public boolean isNullCapableValue()Description copied from class:NodeValue
INTERNAL:- Overrides:
isNullCapableValue
in classNodeValue
- Returns:
- Returns true if the NodeValue implements NullCapableValue.
- See Also:
-
getDataHandlerForObjectValue
-
getMapping
-
buildSelfRecord
Description copied from class:NodeValue
INTERNAL:- Overrides:
buildSelfRecord
in classNodeValue
-
endSelfNodeValue
public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes) - Overrides:
endSelfNodeValue
in classNodeValue
-