|
EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.internal.sessions.AbstractRecord org.eclipse.persistence.oxm.record.XMLRecord org.eclipse.persistence.oxm.record.UnmarshalRecord
public class UnmarshalRecord
Purpose:Provide an implementation of ContentHandler that is used by TopLink OXM to build mapped Java Objects from SAX events.
Responsibilities:
XPathNode
,
NodeValue
,
TreeObjectBuilder
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
---|
org.eclipse.persistence.internal.sessions.AbstractRecord.EntrySet, org.eclipse.persistence.internal.sessions.AbstractRecord.KeySet, org.eclipse.persistence.internal.sessions.AbstractRecord.NoEntry, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordEntry, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordEntryIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordKeyIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.RecordValuesIterator, org.eclipse.persistence.internal.sessions.AbstractRecord.ValuesSet |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
static UnmappedContentHandler |
DEFAULT_UNMAPPED_CONTENT_HANDLER
|
protected static java.lang.String |
EMPTY_STRING
|
Fields inherited from class org.eclipse.persistence.oxm.record.XMLRecord |
---|
session |
Fields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
---|
fields, lookupField, noEntry, size, values |
Constructor Summary | |
---|---|
UnmarshalRecord(org.eclipse.persistence.internal.oxm.TreeObjectBuilder treeObjectBuilder)
|
Method Summary | |
---|---|
void |
addAttributeValue(org.eclipse.persistence.internal.oxm.ContainerValue containerValue,
java.lang.Object value)
|
void |
addAttributeValue(org.eclipse.persistence.internal.oxm.ContainerValue containerValue,
java.lang.Object value,
java.lang.Object collection)
|
void |
characters(char[] ch,
int start,
int length)
|
void |
clear()
PUBLIC: Clear the sub-nodes of the DOM. |
void |
comment(char[] data,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endEntity(java.lang.String entity)
|
void |
endPrefixMapping(java.lang.String prefix)
|
java.lang.Object |
get(org.eclipse.persistence.internal.helper.DatabaseField key)
INTERNAL: Retrieve the value for the field. |
org.eclipse.persistence.internal.oxm.NodeValue |
getAttributeChildNodeValue(java.lang.String namespace,
java.lang.String localName)
|
org.xml.sax.Attributes |
getAttributes()
|
UnmarshalRecord |
getChildRecord()
|
java.lang.Object |
getContainerInstance(org.eclipse.persistence.internal.oxm.ContainerValue containerValue)
|
org.w3c.dom.Document |
getDocument()
PUBLIC: Return the document. |
org.w3c.dom.Element |
getDOM()
PUBLIC: Return the DOM. |
java.lang.String |
getEncoding()
PUBLIC: Gets the encoding for this document. |
org.eclipse.persistence.internal.oxm.SAXFragmentBuilder |
getFragmentBuilder()
|
int |
getLevelIndex()
|
java.lang.String |
getLocalName()
PUBLIC: Get the local name of the context root element. |
java.util.Map |
getNamespaceMap()
|
java.lang.String |
getNamespaceURI()
PUBLIC: Get the namespace URI for the context root element. |
java.lang.String |
getNoNamespaceSchemaLocation()
|
protected org.eclipse.persistence.internal.oxm.XPathNode |
getNonAttributeXPathNode(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
java.util.List |
getNullCapableValues()
|
UnmarshalRecord |
getParentRecord()
|
java.lang.String |
getRootElementName()
Return the root element's prefix qualified name |
java.lang.String |
getRootElementNamespaceUri()
Return the root element's namespace URI |
java.lang.String |
getSchemaLocation()
|
org.eclipse.persistence.internal.oxm.NodeValue |
getSelfNodeValueForAttribute(java.lang.String namespace,
java.lang.String localName)
|
org.eclipse.persistence.internal.oxm.StrBuffer |
getStringBuffer()
|
DOMRecord |
getTransformationRecord()
|
javax.xml.namespace.QName |
getTypeQName()
|
XMLUnmarshaller |
getUnmarshaller()
INTERNAL: |
java.util.Map |
getUriToPrefixMap()
|
java.lang.String |
getVersion()
PUBLIC: Gets the XML Version for this document. |
org.eclipse.persistence.internal.oxm.record.XMLReader |
getXMLReader()
|
org.eclipse.persistence.internal.oxm.XPathNode |
getXPathNode()
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
boolean |
isBufferCDATA()
|
boolean |
isSelfRecord()
Indicates if this UnmarshalRecord represents a 'self' record |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
reference(org.eclipse.persistence.internal.oxm.Reference reference)
|
void |
removeNullCapableValue(org.eclipse.persistence.internal.oxm.NullCapableValue nullCapableValue)
|
void |
resetStringBuffer()
|
java.lang.String |
resolveNamespacePrefix(java.lang.String prefix)
|
java.lang.String |
resolveNamespaceUri(java.lang.String uri)
|
void |
setAttributes(org.xml.sax.Attributes attributes)
|
void |
setAttributeValue(java.lang.Object value,
DatabaseMapping mapping)
|
void |
setChildRecord(UnmarshalRecord childRecord)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
setEncoding(java.lang.String enc)
INTERNAL: |
void |
setFragmentBuilder(org.eclipse.persistence.internal.oxm.SAXFragmentBuilder builder)
|
void |
setNamespaceMap(java.util.Map namespaceMap)
|
void |
setNoNamespaceSchemaLocation(java.lang.String location)
|
void |
setParentRecord(UnmarshalRecord parentRecord)
|
void |
setSchemaLocation(java.lang.String schemaLocation)
|
void |
setSelfRecord(boolean isSelfRecord)
Sets the flag which indicates if this UnmarshalRecord represents a 'self' record |
void |
setTransformationRecord(DOMRecord transformationRecord)
|
void |
setTypeQName(javax.xml.namespace.QName typeQName)
|
void |
setUnmarshaller(XMLUnmarshaller unmarshaller)
INTERNAL: |
void |
setUriToPrefixMap(java.util.Map uriToPrefixMap)
|
void |
setVersion(java.lang.String version)
INTERNAL: |
void |
setXMLReader(org.eclipse.persistence.internal.oxm.record.XMLReader xmlReader)
|
void |
skippedEntity(java.lang.String name)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDocument(XMLMapping selfRecordMapping)
|
void |
startDTD(java.lang.String a,
java.lang.String b,
java.lang.String c)
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startEntity(java.lang.String entity)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
void |
startUnmappedElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
java.lang.String |
toString()
|
java.lang.String |
transformToXML()
Return the XML string representation of the DOM. |
void |
unmappedContent()
|
Methods inherited from class org.eclipse.persistence.oxm.record.XMLRecord |
---|
contains, convertToXMLField, getCurrentObject, getDocPresPolicy, getIndicatingNoEntry, getLeafElementType, getMarshaller, getNamespaceResolver, getOwningObject, getSession, setCurrentObject, setDocPresPolicy, setLeafElementType, setMarshaller, setNamespaceResolver, setOwningObject, setSession |
Methods inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
---|
add, clone, containsKey, containsKey, containsKey, containsValue, elements, entrySet, get, get, getField, getFields, getIndicatingNoEntry, getValues, getValues, getValues, isEmpty, keys, keySet, mergeFrom, put, put, put, putAll, remove, remove, remove, replaceAt, resetSize, setFields, setValues, size, values |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
protected static final java.lang.String EMPTY_STRING
public static final UnmappedContentHandler DEFAULT_UNMAPPED_CONTENT_HANDLER
Constructor Detail |
---|
public UnmarshalRecord(org.eclipse.persistence.internal.oxm.TreeObjectBuilder treeObjectBuilder)
Method Detail |
---|
public java.lang.String getLocalName()
XMLRecord
getLocalName
in class XMLRecord
public java.lang.String getNamespaceURI()
XMLRecord
getNamespaceURI
in class XMLRecord
public void clear()
XMLRecord
clear
in interface java.util.Map
clear
in class XMLRecord
public org.w3c.dom.Document getDocument()
XMLRecord
getDocument
in class XMLRecord
public org.w3c.dom.Element getDOM()
XMLRecord
getDOM
in class XMLRecord
public java.lang.String transformToXML()
XMLRecord
transformToXML
in class XMLRecord
public org.eclipse.persistence.internal.oxm.record.XMLReader getXMLReader()
public void setXMLReader(org.eclipse.persistence.internal.oxm.record.XMLReader xmlReader)
public UnmarshalRecord getChildRecord()
public void setChildRecord(UnmarshalRecord childRecord)
public UnmarshalRecord getParentRecord()
public java.lang.String getRootElementName()
public java.lang.String getRootElementNamespaceUri()
public void setParentRecord(UnmarshalRecord parentRecord)
public DOMRecord getTransformationRecord()
public void setTransformationRecord(DOMRecord transformationRecord)
public java.util.Map getNamespaceMap()
public void setNamespaceMap(java.util.Map namespaceMap)
public java.util.Map getUriToPrefixMap()
public void setUriToPrefixMap(java.util.Map uriToPrefixMap)
public java.util.List getNullCapableValues()
public void removeNullCapableValue(org.eclipse.persistence.internal.oxm.NullCapableValue nullCapableValue)
public java.lang.Object getContainerInstance(org.eclipse.persistence.internal.oxm.ContainerValue containerValue)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String enc)
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
public java.lang.String getSchemaLocation()
public void setSchemaLocation(java.lang.String schemaLocation)
public java.lang.String getNoNamespaceSchemaLocation()
public void setNoNamespaceSchemaLocation(java.lang.String location)
public org.eclipse.persistence.internal.oxm.StrBuffer getStringBuffer()
public org.xml.sax.Attributes getAttributes()
public void setAttributes(org.xml.sax.Attributes attributes)
public javax.xml.namespace.QName getTypeQName()
public void setTypeQName(javax.xml.namespace.QName typeQName)
public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
public java.lang.Object get(org.eclipse.persistence.internal.helper.DatabaseField key)
XMLRecord
get
in class XMLRecord
public org.eclipse.persistence.internal.oxm.XPathNode getXPathNode()
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startDocument(XMLMapping selfRecordMapping) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startUnmappedElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
protected org.eclipse.persistence.internal.oxm.XPathNode getNonAttributeXPathNode(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
public java.lang.String resolveNamespacePrefix(java.lang.String prefix)
resolveNamespacePrefix
in class XMLRecord
public java.lang.String resolveNamespaceUri(java.lang.String uri)
public java.lang.String toString()
toString
in class org.eclipse.persistence.internal.sessions.AbstractRecord
public org.eclipse.persistence.internal.oxm.NodeValue getSelfNodeValueForAttribute(java.lang.String namespace, java.lang.String localName)
public org.eclipse.persistence.internal.oxm.NodeValue getAttributeChildNodeValue(java.lang.String namespace, java.lang.String localName)
public XMLUnmarshaller getUnmarshaller()
XMLRecord
getUnmarshaller
in class XMLRecord
public void setUnmarshaller(XMLUnmarshaller unmarshaller)
XMLRecord
setUnmarshaller
in class XMLRecord
public org.eclipse.persistence.internal.oxm.SAXFragmentBuilder getFragmentBuilder()
public void setFragmentBuilder(org.eclipse.persistence.internal.oxm.SAXFragmentBuilder builder)
public void resetStringBuffer()
public boolean isBufferCDATA()
public void comment(char[] data, int start, int length)
comment
in interface org.xml.sax.ext.LexicalHandler
public void startCDATA()
startCDATA
in interface org.xml.sax.ext.LexicalHandler
public void endCDATA()
endCDATA
in interface org.xml.sax.ext.LexicalHandler
public void startEntity(java.lang.String entity)
startEntity
in interface org.xml.sax.ext.LexicalHandler
public void endEntity(java.lang.String entity)
endEntity
in interface org.xml.sax.ext.LexicalHandler
public void startDTD(java.lang.String a, java.lang.String b, java.lang.String c)
startDTD
in interface org.xml.sax.ext.LexicalHandler
public void endDTD()
endDTD
in interface org.xml.sax.ext.LexicalHandler
public void setSelfRecord(boolean isSelfRecord)
isSelfRecord
- true if this record represents
'self', false otherwisepublic boolean isSelfRecord()
public int getLevelIndex()
public void setAttributeValue(java.lang.Object value, DatabaseMapping mapping)
public void addAttributeValue(org.eclipse.persistence.internal.oxm.ContainerValue containerValue, java.lang.Object value)
public void addAttributeValue(org.eclipse.persistence.internal.oxm.ContainerValue containerValue, java.lang.Object value, java.lang.Object collection)
public void reference(org.eclipse.persistence.internal.oxm.Reference reference)
public void unmappedContent()
|
EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |