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, java.lang.String URI, java.lang.String localName, java.lang.String value)Handle swaRef and inline attribute cases.UnmarshalRecordbuildSelfRecord(UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)INTERNAL:voidendElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)INTERNAL:voidendSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, org.xml.sax.Attributes attributes)javax.activation.DataHandlergetDataHandlerForObjectValue(java.lang.Object obj, java.lang.Class classification)BinaryDataMappinggetMapping()protected java.lang.StringgetValueToWrite(javax.xml.namespace.QName schemaType, java.lang.Object value, CoreAbstractSession session)booleanisNullCapableValue()INTERNAL:booleanisOwningNode(XPathFragment xPathFragment)INTERNAL:booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)INTERNAL:booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment)INTERNAL:booleanmarshalSingleValue(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.booleanmarshalSingleValue(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.voidsetNullValue(java.lang.Object object, CoreSession session)INTERNAL: Set the null representation of the (object).booleanstartElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.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 java.lang.String getValueToWrite(javax.xml.namespace.QName schemaType, java.lang.Object value, CoreAbstractSession session)
-
isOwningNode
public boolean isOwningNode(XPathFragment xPathFragment)
Description copied from class:NodeValueINTERNAL:- Overrides:
isOwningNodein classNodeValue- Returns:
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
Description copied from class:NodeValueINTERNAL:
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext, XPathFragment rootFragment)
Description copied from class:NodeValueINTERNAL:
-
marshalSingleValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.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- Returns:
-
marshalSingleValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.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- Returns:
-
startElement
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
Description copied from class:NodeValueINTERNAL:- Overrides:
startElementin classNodeValue- Returns:
-
endElement
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
Description copied from class:NodeValueINTERNAL:- Overrides:
endElementin classNodeValue
-
attribute
public void attribute(UnmarshalRecord unmarshalRecord, java.lang.String URI, java.lang.String localName, java.lang.String value)
Handle swaRef and inline attribute cases.
-
setNullValue
public void setNullValue(java.lang.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 javax.activation.DataHandler getDataHandlerForObjectValue(java.lang.Object obj, java.lang.Class classification)
-
getMapping
public BinaryDataMapping getMapping()
-
buildSelfRecord
public UnmarshalRecord buildSelfRecord(UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
Description copied from class:NodeValueINTERNAL:- Overrides:
buildSelfRecordin classNodeValue- Returns:
-
endSelfNodeValue
public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, org.xml.sax.Attributes attributes)
- Overrides:
endSelfNodeValuein classNodeValue
-
-