Class UnmarshalRecordImpl<TRANSFORMATION_RECORD extends TransformationRecord>
- java.lang.Object
-
- org.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
-
- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl<TRANSFORMATION_RECORD>
-
- All Implemented Interfaces:
AbstractUnmarshalRecord<CoreAbstractSession,CoreField,Unmarshaller>
,ExtendedContentHandler
,UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD,Unmarshaller>
,XMLRecord<CoreAbstractSession>
,ContentHandler
,LexicalHandler
- Direct Known Subclasses:
BinaryDataUnmarshalRecord
,UnmappedContentHandlerWrapper
,XMLBinaryAttachmentHandler
,XMLInlineBinaryHandler
,XMLRootRecord
public class UnmarshalRecordImpl<TRANSFORMATION_RECORD extends TransformationRecord> extends CoreAbstractRecord implements UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD,Unmarshaller>
Purpose:Provide an implementation of ContentHandler that is used by TopLink OXM to build mapped Java Objects from SAX events.
Responsibilities:
- Implement the ContentHandler and LexicalHandler interfaces
- Make calls into the appropriate NodeValues based on the incoming SAXEvents
- Make callbacks into XMLReader for newObject events
- Maintain a map of Collections to be populated for collection mappings.
- Author:
- bdoughan
- See Also:
XPathNode
,NodeValue
,TreeObjectBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
XMLRecord.Nil
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
currentObject
protected boolean
namespaceAware
protected UnmarshalRecord
parentRecord
protected String
rootElementLocalName
protected String
rootElementName
protected String
rootElementNamespaceUri
protected CoreAbstractSession
session
protected XPathFragment
textWrapperFragment
protected Unmarshaller
unmarshaller
protected XMLReader
xmlReader
-
Fields inherited from interface org.eclipse.persistence.internal.oxm.record.UnmarshalRecord
DEFAULT_UNMAPPED_CONTENT_HANDLER
-
Fields inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
DEFAULT_ATTRIBUTE_GROUP, NIL
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnmarshalRecordImpl()
UnmarshalRecordImpl(ObjectBuilder objectBuilder)
-
Method Summary
-
-
-
Field Detail
-
xmlReader
protected XMLReader xmlReader
-
parentRecord
protected UnmarshalRecord parentRecord
-
rootElementLocalName
protected String rootElementLocalName
-
rootElementName
protected String rootElementName
-
rootElementNamespaceUri
protected String rootElementNamespaceUri
-
unmarshaller
protected Unmarshaller unmarshaller
-
currentObject
protected Object currentObject
-
session
protected CoreAbstractSession session
-
namespaceAware
protected boolean namespaceAware
-
textWrapperFragment
protected XPathFragment textWrapperFragment
-
-
Constructor Detail
-
UnmarshalRecordImpl
protected UnmarshalRecordImpl()
-
UnmarshalRecordImpl
public UnmarshalRecordImpl(ObjectBuilder objectBuilder)
-
-
Method Detail
-
initialize
public UnmarshalRecord initialize(ObjectBuilder treeObjectBuilder)
- Specified by:
initialize
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getLocalName
public String getLocalName()
- Specified by:
getLocalName
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setLocalName
public void setLocalName(String localName)
- Specified by:
setLocalName
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getNamespaceURI
public String getNamespaceURI()
-
clear
public void clear()
-
getDocument
public Document getDocument()
-
transformToXML
public String transformToXML()
-
getXMLReader
public XMLReader getXMLReader()
- Specified by:
getXMLReader
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setXMLReader
public void setXMLReader(XMLReader xmlReader)
- Specified by:
setXMLReader
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getChildRecord
public UnmarshalRecord getChildRecord()
- Specified by:
getChildRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setChildRecord
public void setChildRecord(UnmarshalRecord childRecord)
- Specified by:
setChildRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getParentRecord
public UnmarshalRecord getParentRecord()
- Specified by:
getParentRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getReferenceResolver
public ReferenceResolver getReferenceResolver()
INTERNAL: The ReferenceResolver that is leveraged by key based mappings.- Specified by:
getReferenceResolver
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Since:
- EclipseLink 2.5.0
-
setReferenceResolver
public void setReferenceResolver(ReferenceResolver referenceResolver)
INTERNAL: Set the ReferenceResolver that will be leveraged by key based mappings.- Specified by:
setReferenceResolver
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Since:
- EclipseLink 2.5.0
-
getRootElementName
public String getRootElementName()
Return the root element's prefix qualified name- Specified by:
getRootElementName
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setRootElementName
public void setRootElementName(String qName)
- Specified by:
setRootElementName
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getRootElementNamespaceUri
public String getRootElementNamespaceUri()
Return the root element's namespace URI- Specified by:
getRootElementNamespaceUri
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setRootElementNamespaceUri
public void setRootElementNamespaceUri(String uri)
- Specified by:
setRootElementNamespaceUri
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setParentRecord
public void setParentRecord(UnmarshalRecord parentRecord)
- Specified by:
setParentRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getTransformationRecord
public TRANSFORMATION_RECORD getTransformationRecord()
- Specified by:
getTransformationRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setTransformationRecord
public void setTransformationRecord(TRANSFORMATION_RECORD transformationRecord)
- Specified by:
setTransformationRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getUnmarshalNamespaceResolver
public UnmarshalNamespaceResolver getUnmarshalNamespaceResolver()
- Specified by:
getUnmarshalNamespaceResolver
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setUnmarshalNamespaceResolver
public void setUnmarshalNamespaceResolver(UnmarshalNamespaceResolver anUnmarshalNamespaceResolver)
- Specified by:
setUnmarshalNamespaceResolver
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getNullCapableValues
public List getNullCapableValues()
- Specified by:
getNullCapableValues
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
removeNullCapableValue
public void removeNullCapableValue(NullCapableValue nullCapableValue)
- Specified by:
removeNullCapableValue
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getContainerInstance
public Object getContainerInstance(ContainerValue c)
- Specified by:
getContainerInstance
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getContainerInstance
public Object getContainerInstance(ContainerValue c, boolean createContainerIfNecessary)
- Specified by:
getContainerInstance
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setContainerInstance
public void setContainerInstance(int index, Object containerInstance)
- Specified by:
setContainerInstance
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getEncoding
public String getEncoding()
PUBLIC: Gets the encoding for this document. Only set on the root-level UnmarshalRecord- Specified by:
getEncoding
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Returns:
- a String representing the encoding for this doc
-
setEncoding
public void setEncoding(String enc)
INTERNAL:
-
getVersion
public String getVersion()
PUBLIC: Gets the XML Version for this document. Only set on the root-level UnmarshalRecord, if supported by the parser.- Specified by:
getVersion
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setVersion
public void setVersion(String version)
INTERNAL:
-
getSchemaLocation
public String getSchemaLocation()
- Specified by:
getSchemaLocation
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setSchemaLocation
public void setSchemaLocation(String schemaLocation)
-
getNoNamespaceSchemaLocation
public String getNoNamespaceSchemaLocation()
- Specified by:
getNoNamespaceSchemaLocation
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setNoNamespaceSchemaLocation
public void setNoNamespaceSchemaLocation(String location)
-
getStringBuffer
protected StrBuffer getStringBuffer()
-
getCharacters
public CharSequence getCharacters()
- Specified by:
getCharacters
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getAttributes
public Attributes getAttributes()
- Specified by:
getAttributes
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setAttributes
public void setAttributes(Attributes attributes)
- Specified by:
setAttributes
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getTypeQName
public QName getTypeQName()
- Specified by:
getTypeQName
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setTypeQName
public void setTypeQName(QName typeQName)
- Specified by:
setTypeQName
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
getDocumentLocator
public Locator getDocumentLocator()
-
get
public Object get(CoreField key)
- Specified by:
get
in interfaceAbstractUnmarshalRecord<CoreAbstractSession,CoreField,Unmarshaller>
-
getXPathNode
public XPathNode getXPathNode()
- Specified by:
getXPathNode
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getDescriptor
public Descriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getUnmarshalContext
public UnmarshalContext getUnmarshalContext()
- Specified by:
getUnmarshalContext
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setUnmarshalContext
public void setUnmarshalContext(UnmarshalContext unmarshalContext)
- Specified by:
setUnmarshalContext
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
isNil
public boolean isNil()
- Specified by:
isNil
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setNil
public void setNil(boolean nil)
Description copied from interface:ExtendedContentHandler
This method can be used to track that the current element is nil- Specified by:
setNil
in interfaceExtendedContentHandler
- Specified by:
setNil
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
initializeRecord
public void initializeRecord(Mapping selfRecordMapping) throws SAXException
- Specified by:
initializeRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
startUnmappedElement
public void startUnmappedElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
- Throws:
SAXException
-
endElement
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
endUnmappedElement
public void endUnmappedElement(String namespaceURI, String localName, String qName) throws SAXException
- Specified by:
endUnmappedElement
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
characters
public void characters(CharSequence characters) throws SAXException
- Specified by:
characters
in interfaceExtendedContentHandler
- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String name) throws SAXException
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
getNonAttributeXPathNode
public XPathNode getNonAttributeXPathNode(String namespaceURI, String localName, String qName, Attributes attributes)
INTERNAL:- Specified by:
getNonAttributeXPathNode
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
resolveNamespacePrefix
public String resolveNamespacePrefix(String prefix)
- Specified by:
resolveNamespacePrefix
in interfaceAbstractUnmarshalRecord<CoreAbstractSession,CoreField,Unmarshaller>
-
resolveNamespaceUri
public String resolveNamespaceUri(String uri)
- Specified by:
resolveNamespaceUri
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getSelfNodeValueForAttribute
public NodeValue getSelfNodeValueForAttribute(String namespace, String localName)
-
getAttributeChildNodeValue
public NodeValue getAttributeChildNodeValue(String namespace, String localName)
- Specified by:
getAttributeChildNodeValue
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getFragmentBuilder
public SAXFragmentBuilder getFragmentBuilder()
- Specified by:
getFragmentBuilder
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setFragmentBuilder
public void setFragmentBuilder(SAXFragmentBuilder builder)
- Specified by:
setFragmentBuilder
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
resetStringBuffer
public void resetStringBuffer()
- Specified by:
resetStringBuffer
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
isBufferCDATA
public boolean isBufferCDATA()
- Specified by:
isBufferCDATA
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
comment
public void comment(char[] data, int start, int length)
- Specified by:
comment
in interfaceLexicalHandler
-
startCDATA
public void startCDATA()
- Specified by:
startCDATA
in interfaceLexicalHandler
-
endCDATA
public void endCDATA()
- Specified by:
endCDATA
in interfaceLexicalHandler
-
startEntity
public void startEntity(String entity)
- Specified by:
startEntity
in interfaceLexicalHandler
-
endEntity
public void endEntity(String entity)
- Specified by:
endEntity
in interfaceLexicalHandler
-
startDTD
public void startDTD(String a, String b, String c)
- Specified by:
startDTD
in interfaceLexicalHandler
-
endDTD
public void endDTD()
- Specified by:
endDTD
in interfaceLexicalHandler
-
setSelfRecord
public void setSelfRecord(boolean isSelfRecord)
Sets the flag which indicates if this UnmarshalRecord represents a 'self' record- Specified by:
setSelfRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Parameters:
isSelfRecord
- true if this record represents 'self', false otherwise
-
isSelfRecord
public boolean isSelfRecord()
Indicates if this UnmarshalRecord represents a 'self' record- Specified by:
isSelfRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Returns:
- true if this record represents 'self', false otherwise
-
getLevelIndex
public int getLevelIndex()
- Specified by:
getLevelIndex
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setAttributeValue
public void setAttributeValue(Object value, Mapping mapping)
INTERNAL- Specified by:
setAttributeValue
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Since:
- EclipseLink 2.5.0
-
addAttributeValue
public void addAttributeValue(ContainerValue containerValue, Object value)
- Specified by:
addAttributeValue
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
addAttributeValue
public void addAttributeValue(ContainerValue containerValue, Object value, Object collection)
- Specified by:
addAttributeValue
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setAttributeValueNull
public void setAttributeValueNull(ContainerValue containerValue)
- Specified by:
setAttributeValueNull
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
reference
public void reference(Reference reference)
- Specified by:
reference
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
unmappedContent
public void unmappedContent()
- Specified by:
unmappedContent
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getChildUnmarshalRecord
public UnmarshalRecord getChildUnmarshalRecord(ObjectBuilder treeObjectBuilder)
- Specified by:
getChildUnmarshalRecord
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setUnmarshaller
public void setUnmarshaller(Unmarshaller unmarshaller)
INTERNAL:- Specified by:
setUnmarshaller
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getPrefixesForFragment
public Map<String,String> getPrefixesForFragment()
INTERNAL Returns a Map of any prefix mappings that were made before the most recent start element event. This Map is used so the prefix mappings can be passed along to a fragment builder in the event that the element in question is going to be unmarshalled as a Node.- Specified by:
getPrefixesForFragment
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getNamespaceSeparator
public char getNamespaceSeparator()
- Specified by:
getNamespaceSeparator
in interfaceXMLRecord<TRANSFORMATION_RECORD extends TransformationRecord>
-
setTextWrapperFragment
public void setTextWrapperFragment(XPathFragment newTextWrapperFragment)
- Specified by:
setTextWrapperFragment
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getTextWrapperFragment
public XPathFragment getTextWrapperFragment()
- Specified by:
getTextWrapperFragment
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
resolveReferences
public void resolveReferences(CoreAbstractSession abstractSession, IDResolver idResolver)
INTERNAL: If the UnmarshalRecord has a ReferenceResolver, tell it to resolve its references.- Specified by:
resolveReferences
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Since:
- EclipseLink 2.5.0
-
createRoot
public Root createRoot()
INTERNAL:- Specified by:
createRoot
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
- Since:
- EclipseLink 2.5.0
-
getSession
public CoreAbstractSession getSession()
- Specified by:
getSession
in interfaceXMLRecord<TRANSFORMATION_RECORD extends TransformationRecord>
-
getUnmarshaller
public Unmarshaller getUnmarshaller()
- Specified by:
getUnmarshaller
in interfaceAbstractUnmarshalRecord<CoreAbstractSession,CoreField,Unmarshaller>
- Specified by:
getUnmarshaller
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
isNamespaceAware
public boolean isNamespaceAware()
- Specified by:
isNamespaceAware
in interfaceXMLRecord<TRANSFORMATION_RECORD extends TransformationRecord>
-
getCurrentObject
public Object getCurrentObject()
- Specified by:
getCurrentObject
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getLeafElementType
public XPathQName getLeafElementType()
- Specified by:
getLeafElementType
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setCurrentObject
public void setCurrentObject(Object object)
- Specified by:
setCurrentObject
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setLeafElementType
public void setLeafElementType(QName type)
- Specified by:
setLeafElementType
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setLeafElementType
public void setLeafElementType(XPathQName type)
-
setSession
public void setSession(CoreAbstractSession session)
- Specified by:
setSession
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getUnmarshalAttributeGroup
public CoreAttributeGroup getUnmarshalAttributeGroup()
- Specified by:
getUnmarshalAttributeGroup
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
setUnmarshalAttributeGroup
public void setUnmarshalAttributeGroup(CoreAttributeGroup unmarshalAttributeGroup)
- Specified by:
setUnmarshalAttributeGroup
in interfaceUnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,TRANSFORMATION_RECORD extends TransformationRecord,Unmarshaller>
-
getConversionManager
public ConversionManager getConversionManager()
- Specified by:
getConversionManager
in interfaceXMLRecord<TRANSFORMATION_RECORD extends TransformationRecord>
- Since:
- EclipseLink 2.6.0
-
-