|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
org.eclipse.persistence.internal.sessions.AbstractRecord
org.eclipse.persistence.oxm.record.XMLRecord
org.eclipse.persistence.oxm.record.UnmarshalRecord
org.eclipse.persistence.oxm.record.XMLRootRecord
public class XMLRootRecord
Record for handling simple root elements that have a single text child node, and are being unmarshalled to a primitive wrapper object. The characters method will be used to gather the text to be converted.
| Nested 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 org.eclipse.persistence.internal.oxm.record.XMLRecord |
|---|
org.eclipse.persistence.internal.oxm.record.XMLRecord.Nil |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.oxm.record.XMLRecord |
|---|
currentObject, equalNamespaceResolvers, hasCustomNamespaceMapper, NIL, session, unmarshaller |
| Fields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
|---|
fields, lookupField, noEntry, nullValueInFields, size, values |
| 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 | |
|---|---|
XMLRootRecord(java.lang.Class cls)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
characters(java.lang.CharSequence characters)
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
java.lang.Object |
getCurrentObject()
Return a populated XMLRoot object. |
void |
initializeRecord(org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
|
void |
startDocument()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
| Methods inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
|---|
add, clone, containsKey, containsKey, containsKey, containsValue, elements, entrySet, get, getField, getFields, getIndicatingNoEntry, getLookupField, getValues, getValues, getValues, hasNullValueInFields, isEmpty, keys, keySet, mergeFrom, put, put, putAll, remove, remove, remove, replaceAt, resetSize, setFields, setNullValueInFields, setValues, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.persistence.internal.oxm.record.UnmarshalRecord |
|---|
getLeafElementType, setLeafElementType, setSession |
| Methods inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord |
|---|
getSession |
| Methods inherited from interface org.eclipse.persistence.internal.oxm.record.AbstractMarshalRecord |
|---|
put |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public XMLRootRecord(java.lang.Class cls)
| Method Detail |
|---|
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class UnmarshalRecordorg.xml.sax.SAXException
public void characters(java.lang.CharSequence characters)
throws org.xml.sax.SAXException
characters in interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandlercharacters in class UnmarshalRecordorg.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class UnmarshalRecordorg.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.ContentHandlerendElement in class UnmarshalRecordorg.xml.sax.SAXExceptionpublic java.lang.Object getCurrentObject()
getCurrentObject in interface org.eclipse.persistence.internal.oxm.record.UnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,IDResolver,org.eclipse.persistence.internal.oxm.TreeObjectBuilder,XMLUnmarshaller>getCurrentObject in class UnmarshalRecord
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class UnmarshalRecordorg.xml.sax.SAXException
public void initializeRecord(org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
throws org.xml.sax.SAXException
initializeRecord in interface org.eclipse.persistence.internal.oxm.record.UnmarshalRecord<org.eclipse.persistence.internal.sessions.AbstractSession,org.eclipse.persistence.internal.helper.DatabaseField,IDResolver,org.eclipse.persistence.internal.oxm.TreeObjectBuilder,XMLUnmarshaller>initializeRecord in class UnmarshalRecordorg.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.ContentHandlerstartElement in class UnmarshalRecordorg.xml.sax.SAXException
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||