|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.NoEntry |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.oxm.record.UnmarshalRecord |
|---|
DEFAULT_UNMAPPED_CONTENT_HANDLER |
| Fields inherited from class org.eclipse.persistence.oxm.record.XMLRecord |
|---|
NIL |
| Fields inherited from class org.eclipse.persistence.internal.sessions.AbstractRecord |
|---|
noEntry |
| Constructor Summary | |
|---|---|
XMLRootRecord(Class cls)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
Object |
getCurrentObject()
Return a populated XMLRoot object. |
void |
initializeRecord(XMLMapping selfRecordMapping)
|
void |
startDocument()
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
|
| Methods inherited from class org.eclipse.persistence.oxm.record.XMLRecord |
|---|
contains, getDocPresPolicy, getIndicatingNoEntry, getLeafElementType, getMarshaller, getNamespaceResolver, getOwningObject, getSession, getUnmarshaller, isXOPPackage, setCurrentObject, setDocPresPolicy, setLeafElementType, setMarshaller, setNamespaceResolver, setOwningObject, setSession, setUnmarshaller, setXOPPackage |
| 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, size, values |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public XMLRootRecord(Class cls)
| Method Detail |
|---|
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class UnmarshalRecordSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class UnmarshalRecordSAXException
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class UnmarshalRecordSAXExceptionpublic Object getCurrentObject()
getCurrentObject in class XMLRecord
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class UnmarshalRecordSAXException
public void initializeRecord(XMLMapping selfRecordMapping)
throws SAXException
initializeRecord in class UnmarshalRecordSAXException
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class UnmarshalRecordSAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||