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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattribute(UnmarshalRecord unmarshalRecord, String URI, String localName, String value) Handle swaRef and inline attribute cases.buildSelfRecord(UnmarshalRecord unmarshalRecord, Attributes atts) INTERNAL:voidendElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) INTERNAL:voidendSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes) getDataHandlerForObjectValue(Object obj, Class<?> classification) protected StringgetValueToWrite(QName schemaType, Object value, CoreAbstractSession session) booleanINTERNAL: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 Details
-
XMLBinaryDataMappingNodeValue
-
-
Method Details
-
getValueToWrite
-
isOwningNode
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
Description copied from class:NodeValueINTERNAL:- Overrides:
endElementin classNodeValue
-
attribute
Handle swaRef and inline attribute cases. -
setNullValue
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:
-
getDataHandlerForObjectValue
-
getMapping
-
buildSelfRecord
Description copied from class:NodeValueINTERNAL:- Overrides:
buildSelfRecordin classNodeValue
-
endSelfNodeValue
public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes) - Overrides:
endSelfNodeValuein classNodeValue
-