Class XMLRootRecord
java.lang.Object
org.eclipse.persistence.internal.core.sessions.CoreAbstractRecord
org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
org.eclipse.persistence.oxm.record.XMLRootRecord
- All Implemented Interfaces:
- org.eclipse.persistence.internal.oxm.record.AbstractUnmarshalRecord,- org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler,- org.eclipse.persistence.internal.oxm.record.UnmarshalRecord,- org.eclipse.persistence.internal.oxm.record.XMLRecord,- ContentHandler,- LexicalHandler
public class XMLRootRecord
extends org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
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 SummaryNested classes/interfaces inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecordorg.eclipse.persistence.internal.oxm.record.XMLRecord.Nil
- 
Field SummaryFields inherited from class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImplcurrentObject, namespaceAware, parentRecord, rootElementLocalName, rootElementName, rootElementNamespaceUri, session, textWrapperFragment, xmlReaderFields inherited from interface org.eclipse.persistence.internal.oxm.record.UnmarshalRecordDEFAULT_UNMAPPED_CONTENT_HANDLERFields inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecordDEFAULT_ATTRIBUTE_GROUP, NIL
- 
Constructor SummaryConstructorsConstructorDescriptionXMLRootRecord(Class cls, org.eclipse.persistence.internal.oxm.XMLUnmarshaller unmarshaller) Default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidcharacters(CharSequence characters) voidvoidendElement(String namespaceURI, String localName, String qName) Return a populated XMLRoot object.voidinitializeRecord(org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping) voidvoidstartElement(String namespaceURI, String localName, String qName, Attributes atts) Methods inherited from class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpladdAttributeValue, addAttributeValue, clear, comment, createRoot, endCDATA, endDTD, endEntity, endPrefixMapping, endUnmappedElement, get, getAttributeChildNodeValue, getAttributes, getCharacters, getChildRecord, getChildUnmarshalRecord, getContainerInstance, getContainerInstance, getConversionManager, getDescriptor, getDocument, getDocumentLocator, getEncoding, getFragmentBuilder, getLeafElementType, getLevelIndex, getLocalName, getNamespaceSeparator, getNamespaceURI, getNoNamespaceSchemaLocation, getNonAttributeXPathNode, getNullCapableValues, getParentRecord, getPrefixesForFragment, getReferenceResolver, getRootElementName, getRootElementNamespaceUri, getSchemaLocation, getSelfNodeValueForAttribute, getSession, getStringBuffer, getTextWrapperFragment, getTransformationRecord, getTypeQName, getUnmarshalAttributeGroup, getUnmarshalContext, getUnmarshaller, getUnmarshalNamespaceResolver, getVersion, getXMLReader, getXPathNode, ignorableWhitespace, initialize, isBufferCDATA, isNamespaceAware, isNil, isSelfRecord, processingInstruction, reference, removeNullCapableValue, resetStringBuffer, resolveNamespacePrefix, resolveNamespaceUri, resolveReferences, setAttributes, setAttributeValue, setAttributeValueNull, setChildRecord, setContainerInstance, setCurrentObject, setDocumentLocator, setEncoding, setFragmentBuilder, setLeafElementType, setLeafElementType, setLocalName, setNil, setNoNamespaceSchemaLocation, setParentRecord, setReferenceResolver, setRootElementName, setRootElementNamespaceUri, setSchemaLocation, setSelfRecord, setSession, setTextWrapperFragment, setTransformationRecord, setTypeQName, setUnmarshalAttributeGroup, setUnmarshalContext, setUnmarshaller, setUnmarshalNamespaceResolver, setVersion, setXMLReader, skippedEntity, startCDATA, startDTD, startEntity, startPrefixMapping, startUnmappedElement, transformToXML, unmappedContent
- 
Constructor Details- 
XMLRootRecordDefault constructor.
 
- 
- 
Method Details- 
characters- Specified by:
- charactersin interface- ContentHandler
- Overrides:
- charactersin class- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
- Throws:
- SAXException
 
- 
characters- Specified by:
- charactersin interface- org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
- Overrides:
- charactersin class- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
- Throws:
- SAXException
 
- 
endDocument- Specified by:
- endDocumentin interface- ContentHandler
- Overrides:
- endDocumentin class- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
- Throws:
- SAXException
 
- 
endElement- Specified by:
- endElementin interface- ContentHandler
- Overrides:
- endElementin class- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
- Throws:
- SAXException
 
- 
getCurrentObjectReturn a populated XMLRoot object.- Specified by:
- getCurrentObjectin interface- org.eclipse.persistence.internal.oxm.record.UnmarshalRecord
- Overrides:
- getCurrentObjectin class- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
 
- 
startDocument- Specified by:
- startDocumentin interface- ContentHandler
- Overrides:
- startDocumentin class- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
- Throws:
- SAXException
 
- 
initializeRecordpublic void initializeRecord(org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping) throws SAXException - Specified by:
- initializeRecordin interface- org.eclipse.persistence.internal.oxm.record.UnmarshalRecord
- Overrides:
- initializeRecordin class- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
- Throws:
- SAXException
 
- 
startElementpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
- startElementin interface- ContentHandler
- Overrides:
- startElementin class- org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
- Throws:
- SAXException
 
 
-