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
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 voidattribute(UnmarshalRecord unmarshalRecord, String URI, String localName, String value)Handle swaRef and inline attribute cases.UnmarshalRecordbuildSelfRecord(UnmarshalRecord unmarshalRecord, Attributes atts)INTERNAL:voidendElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)INTERNAL:voidendSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes)jakarta.activation.DataHandlergetDataHandlerForObjectValue(Object obj, Class<?> classification)BinaryDataMappinggetMapping()protected StringgetValueToWrite(QName schemaType, Object value, CoreAbstractSession session)booleanisNullCapableValue()INTERNAL:booleanisOwningNode(XPathFragment xPathFragment)INTERNAL:booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)INTERNAL:booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment)INTERNAL:booleanmarshalSingleValue(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.booleanmarshalSingleValue(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.voidsetNullValue(Object object, CoreSession session)INTERNAL: Set the null representation of the (object).booleanstartElement(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:NodeValueINTERNAL:- Overrides:
isOwningNodein classNodeValue
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
Description copied from class:NodeValueINTERNAL:
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment)
Description copied from class:NodeValueINTERNAL:
-
marshalSingleValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, 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
-
marshalSingleValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment)
Description copied from class:NodeValueINTERNAL: This method provides an optimization in cases where the value has already been calculated.- Overrides:
marshalSingleValuein classNodeValue
-
startElement
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts)
Description copied from class:NodeValueINTERNAL:- Overrides:
startElementin classNodeValue
-
endElement
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
Description copied from class:NodeValueINTERNAL:- Overrides:
endElementin 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:NullCapableValueINTERNAL: Set the null representation of the (object).- Specified by:
setNullValuein interfaceNullCapableValue
-
isNullCapableValue
public boolean isNullCapableValue()
Description copied from class:NodeValueINTERNAL:- Overrides:
isNullCapableValuein 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:NodeValueINTERNAL:- Overrides:
buildSelfRecordin classNodeValue
-
endSelfNodeValue
public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes)
- Overrides:
endSelfNodeValuein classNodeValue
-
-