oracle.toplink.ox.record
Class XMLRootRecord
java.lang.Object
oracle.toplink.internal.sessions.AbstractRecord
oracle.toplink.ox.record.XMLRecord
oracle.toplink.ox.record.UnmarshalRecord
oracle.toplink.ox.record.XMLRootRecord
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, Record, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
public class XMLRootRecord
- extends UnmarshalRecord
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.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Constructor Summary |
XMLRootRecord(java.lang.Class cls)
Default constructor. |
Methods inherited from class oracle.toplink.ox.record.UnmarshalRecord |
addAttributeValue, addAttributeValue, clear, comment, endCDATA, endDTD, endEntity, endPrefixMapping, get, getAttributeChildNodeValue, getAttributes, getChildRecord, getContainerInstance, getDocument, getDOM, getEncoding, getFragmentBuilder, getLevelIndex, getLocalName, getNamespaceMap, getNamespaceURI, getNoNamespaceSchemaLocation, getNullCapableValues, getObject, getParentRecord, getSchemaLocation, getSelfNodeValueForAttribute, getSession, getStringBuffer, getTransformationRecord, getTypeQName, getUnmarshaller, getUriToPrefixMap, getVersion, getXMLReader, getXPathNode, ignorableWhitespace, isBufferCDATA, isSelfRecord, processingInstruction, reference, removeNullCapableValue, resetStringBuffer, resolveNamespacePrefix, resolveNamespaceUri, setAttributes, setAttributeValue, setChildRecord, setDocumentLocator, setFragmentBuilder, setNamespaceMap, setNoNamespaceSchemaLocation, setParentRecord, setSchemaLocation, setSelfRecord, setSession, setTransformationRecord, setTypeQName, setUnmarshaller, setUriToPrefixMap, setXMLReader, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, startUnmappedElement, toString, transformToXML, unmappedContent |
Methods inherited from class oracle.toplink.internal.sessions.AbstractRecord |
containsKey, containsKey, containsValue, elements, entrySet, get, get, getValues, getValues, isEmpty, keys, keySet, put, put, putAll, 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 |
XMLRootRecord
public XMLRootRecord(java.lang.Class cls)
- Default constructor.
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
characters
in interface org.xml.sax.ContentHandler
- Overrides:
characters
in class UnmarshalRecord
- Throws:
org.xml.sax.SAXException
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
- Overrides:
endDocument
in class UnmarshalRecord
- Throws:
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class UnmarshalRecord
- Throws:
org.xml.sax.SAXException
getCurrentObject
public java.lang.Object getCurrentObject()
- Return a populated XMLRoot object.
- Overrides:
getCurrentObject
in class XMLRecord
getRootElementName
public java.lang.String getRootElementName()
- Return the root element's prefix qualified name
- Overrides:
getRootElementName
in class UnmarshalRecord
- Returns:
getRootElementNamespaceUri
public java.lang.String getRootElementNamespaceUri()
- Return the root element's namespace URI
- Overrides:
getRootElementNamespaceUri
in class UnmarshalRecord
- Returns:
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Overrides:
startDocument
in class UnmarshalRecord
- Throws:
org.xml.sax.SAXException
startElement
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
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class UnmarshalRecord
- Throws:
org.xml.sax.SAXException