public class UnmarshalRecordImpl extends CoreAbstractRecord implements UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>
Purpose:Provide an implementation of ContentHandler that is used by TopLink OXM to build mapped Java Objects from SAX events.
Responsibilities:
XPathNode,
NodeValue,
TreeObjectBuilderXMLRecord.NilDEFAULT_UNMAPPED_CONTENT_HANDLERDEFAULT_ATTRIBUTE_GROUP, NIL| Constructor and Description |
|---|
UnmarshalRecordImpl(ObjectBuilder objectBuilder) |
public UnmarshalRecordImpl(ObjectBuilder objectBuilder)
public UnmarshalRecord initialize(ObjectBuilder treeObjectBuilder)
initialize in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public String getLocalName()
getLocalName in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setLocalName(String localName)
setLocalName in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public String getNamespaceURI()
public void clear()
public Document getDocument()
public String transformToXML()
public XMLReader getXMLReader()
getXMLReader in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setXMLReader(XMLReader xmlReader)
setXMLReader in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public UnmarshalRecord getChildRecord()
getChildRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setChildRecord(UnmarshalRecord childRecord)
setChildRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public UnmarshalRecord getParentRecord()
getParentRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public ReferenceResolver getReferenceResolver()
getReferenceResolver in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setReferenceResolver(ReferenceResolver referenceResolver)
setReferenceResolver in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public String getRootElementName()
getRootElementName in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setRootElementName(String qName)
setRootElementName in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public String getRootElementNamespaceUri()
getRootElementNamespaceUri in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setRootElementNamespaceUri(String uri)
setRootElementNamespaceUri in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setParentRecord(UnmarshalRecord parentRecord)
setParentRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public DOMRecord getTransformationRecord()
getTransformationRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setTransformationRecord(DOMRecord transformationRecord)
setTransformationRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public UnmarshalNamespaceResolver getUnmarshalNamespaceResolver()
getUnmarshalNamespaceResolver in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setUnmarshalNamespaceResolver(UnmarshalNamespaceResolver anUnmarshalNamespaceResolver)
setUnmarshalNamespaceResolver in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public List getNullCapableValues()
getNullCapableValues in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void removeNullCapableValue(NullCapableValue nullCapableValue)
removeNullCapableValue in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public Object getContainerInstance(ContainerValue c)
getContainerInstance in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public Object getContainerInstance(ContainerValue c, boolean createContainerIfNecessary)
getContainerInstance in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setContainerInstance(int index,
Object containerInstance)
setContainerInstance in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public String getEncoding()
getEncoding in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setEncoding(String enc)
public String getVersion()
getVersion in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setVersion(String version)
public String getSchemaLocation()
getSchemaLocation in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setSchemaLocation(String schemaLocation)
public String getNoNamespaceSchemaLocation()
getNoNamespaceSchemaLocation in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setNoNamespaceSchemaLocation(String location)
public CharSequence getCharacters()
getCharacters in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public Attributes getAttributes()
getAttributes in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setAttributes(Attributes attributes)
setAttributes in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public QName getTypeQName()
getTypeQName in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setTypeQName(QName typeQName)
setTypeQName in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic Locator getDocumentLocator()
public Object get(CoreField key)
get in interface AbstractUnmarshalRecord<CoreAbstractSession,CoreField,Unmarshaller>public XPathNode getXPathNode()
getXPathNode in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public Descriptor getDescriptor()
getDescriptor in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public UnmarshalContext getUnmarshalContext()
getUnmarshalContext in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setUnmarshalContext(UnmarshalContext unmarshalContext)
setUnmarshalContext in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public boolean isNil()
isNil in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setNil(boolean nil)
ExtendedContentHandlersetNil in interface ExtendedContentHandlersetNil in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void initializeRecord(Mapping selfRecordMapping) throws SAXException
initializeRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>SAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void startUnmappedElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
SAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void endUnmappedElement(String namespaceURI, String localName, String qName) throws SAXException
endUnmappedElement in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void characters(CharSequence characters) throws SAXException
characters in interface ExtendedContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionpublic XPathNode getNonAttributeXPathNode(String namespaceURI, String localName, String qName, Attributes attributes)
getNonAttributeXPathNode in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public String resolveNamespacePrefix(String prefix)
resolveNamespacePrefix in interface AbstractUnmarshalRecord<CoreAbstractSession,CoreField,Unmarshaller>public String resolveNamespaceUri(String uri)
resolveNamespaceUri in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public NodeValue getSelfNodeValueForAttribute(String namespace, String localName)
public NodeValue getAttributeChildNodeValue(String namespace, String localName)
getAttributeChildNodeValue in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public SAXFragmentBuilder getFragmentBuilder()
getFragmentBuilder in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setFragmentBuilder(SAXFragmentBuilder builder)
setFragmentBuilder in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void resetStringBuffer()
resetStringBuffer in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public boolean isBufferCDATA()
isBufferCDATA in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void comment(char[] data,
int start,
int length)
comment in interface LexicalHandlerpublic void startCDATA()
startCDATA in interface LexicalHandlerpublic void endCDATA()
endCDATA in interface LexicalHandlerpublic void startEntity(String entity)
startEntity in interface LexicalHandlerpublic void endEntity(String entity)
endEntity in interface LexicalHandlerpublic void startDTD(String a, String b, String c)
startDTD in interface LexicalHandlerpublic void endDTD()
endDTD in interface LexicalHandlerpublic void setSelfRecord(boolean isSelfRecord)
setSelfRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>isSelfRecord - true if this record represents
'self', false otherwisepublic boolean isSelfRecord()
isSelfRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public int getLevelIndex()
getLevelIndex in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setAttributeValue(Object value, Mapping mapping)
setAttributeValue in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void addAttributeValue(ContainerValue containerValue, Object value)
addAttributeValue in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void addAttributeValue(ContainerValue containerValue, Object value, Object collection)
addAttributeValue in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setAttributeValueNull(ContainerValue containerValue)
setAttributeValueNull in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void reference(Reference reference)
reference in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void unmappedContent()
unmappedContent in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public UnmarshalRecord getChildUnmarshalRecord(ObjectBuilder treeObjectBuilder)
getChildUnmarshalRecord in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setUnmarshaller(Unmarshaller unmarshaller)
setUnmarshaller in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public Map<String,String> getPrefixesForFragment()
getPrefixesForFragment in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public char getNamespaceSeparator()
getNamespaceSeparator in interface XMLRecord<CoreAbstractSession>public void setTextWrapperFragment(XPathFragment newTextWrapperFragment)
setTextWrapperFragment in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public XPathFragment getTextWrapperFragment()
getTextWrapperFragment in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void resolveReferences(CoreAbstractSession abstractSession, IDResolver idResolver)
resolveReferences in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public Root createRoot()
createRoot in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public AbstractSession getSession()
getSession in interface XMLRecord<CoreAbstractSession>public Unmarshaller getUnmarshaller()
getUnmarshaller in interface AbstractUnmarshalRecord<CoreAbstractSession,CoreField,Unmarshaller>getUnmarshaller in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public boolean isNamespaceAware()
isNamespaceAware in interface XMLRecord<CoreAbstractSession>public Object getCurrentObject()
getCurrentObject in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public XPathQName getLeafElementType()
getLeafElementType in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setCurrentObject(Object object)
setCurrentObject in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setLeafElementType(QName type)
setLeafElementType in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setLeafElementType(XPathQName type)
public void setSession(CoreAbstractSession session)
setSession in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public CoreAttributeGroup getUnmarshalAttributeGroup()
getUnmarshalAttributeGroup in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>public void setUnmarshalAttributeGroup(CoreAttributeGroup unmarshalAttributeGroup)
setUnmarshalAttributeGroup in interface UnmarshalRecord<CoreAbstractSession,CoreField,IDResolver,ObjectBuilder,Unmarshaller>EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference