Class XMLBinaryDataMappingNodeValue
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.NodeValue
-
- org.eclipse.persistence.internal.oxm.XMLBinaryDataMappingNodeValue
-
- All Implemented Interfaces:
NullCapableValue
public class XMLBinaryDataMappingNodeValue extends NodeValue implements NullCapableValue
INTERNAL:Purpose: This is how the XML Binary Data Mapping is handled when used with the TreeObjectBuilder.
- Author:
- mmacivor
-
-
Constructor Summary
Constructors Constructor Description XMLBinaryDataMappingNodeValue(BinaryDataMapping mapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attribute(UnmarshalRecord unmarshalRecord, String URI, String localName, String value)
Handle swaRef and inline attribute cases.UnmarshalRecord
buildSelfRecord(UnmarshalRecord unmarshalRecord, Attributes atts)
INTERNAL:void
endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
INTERNAL:void
endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes)
jakarta.activation.DataHandler
getDataHandlerForObjectValue(Object obj, Class classification)
BinaryDataMapping
getMapping()
protected String
getValueToWrite(QName schemaType, Object value, CoreAbstractSession session)
boolean
isNullCapableValue()
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 Detail
-
XMLBinaryDataMappingNodeValue
public XMLBinaryDataMappingNodeValue(BinaryDataMapping mapping)
-
-
Method Detail
-
getValueToWrite
protected String getValueToWrite(QName schemaType, Object value, CoreAbstractSession session)
-
isOwningNode
public boolean isOwningNode(XPathFragment xPathFragment)
Description copied from class:NodeValue
INTERNAL:- Overrides:
isOwningNode
in classNodeValue
- Returns:
-
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
- Returns:
-
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
- Returns:
-
startElement
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts)
Description copied from class:NodeValue
INTERNAL:- Overrides:
startElement
in classNodeValue
- Returns:
-
endElement
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
Description copied from class:NodeValue
INTERNAL:- Overrides:
endElement
in classNodeValue
-
attribute
public void attribute(UnmarshalRecord unmarshalRecord, String URI, String localName, String value)
Handle swaRef and inline attribute cases.
-
setNullValue
public void setNullValue(Object object, CoreSession session)
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:
NullCapableValue
-
getDataHandlerForObjectValue
public jakarta.activation.DataHandler getDataHandlerForObjectValue(Object obj, Class classification)
-
getMapping
public BinaryDataMapping getMapping()
-
buildSelfRecord
public UnmarshalRecord buildSelfRecord(UnmarshalRecord unmarshalRecord, Attributes atts)
Description copied from class:NodeValue
INTERNAL:- Overrides:
buildSelfRecord
in classNodeValue
- Returns:
-
endSelfNodeValue
public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes)
- Overrides:
endSelfNodeValue
in classNodeValue
-
-