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:
AbstractUnmarshalRecord,ExtendedContentHandler,UnmarshalRecord,XMLRecord,ContentHandler,LexicalHandler
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 interface org.eclipse.persistence.internal.oxm.record.XMLRecord
XMLRecord.Nil -
Field Summary
Fields inherited from class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
currentObject, namespaceAware, parentRecord, rootElementLocalName, rootElementName, rootElementNamespaceUri, session, textWrapperFragment, xmlReaderFields inherited from interface org.eclipse.persistence.internal.oxm.record.UnmarshalRecord
DEFAULT_UNMAPPED_CONTENT_HANDLERFields inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord
DEFAULT_ATTRIBUTE_GROUP, NIL -
Constructor Summary
ConstructorsConstructorDescriptionXMLRootRecord(Class<?> cls, XMLUnmarshaller unmarshaller) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidcharacters(CharSequence characters) voidvoidendElement(String namespaceURI, String localName, String qName) Return a populated XMLRoot object.voidinitializeRecord(Mapping selfRecordMapping) voidvoidstartElement(String namespaceURI, String localName, String qName, Attributes atts) Methods inherited from class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
addAttributeValue, 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, unmappedContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
XMLRootRecord
Default constructor.
-
-
Method Details
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classUnmarshalRecordImpl- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceExtendedContentHandler- Overrides:
charactersin classUnmarshalRecordImpl- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classUnmarshalRecordImpl- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classUnmarshalRecordImpl- Throws:
SAXException
-
getCurrentObject
Return a populated XMLRoot object.- Specified by:
getCurrentObjectin interfaceUnmarshalRecord- Overrides:
getCurrentObjectin classUnmarshalRecordImpl
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classUnmarshalRecordImpl- Throws:
SAXException
-
initializeRecord
- Specified by:
initializeRecordin interfaceUnmarshalRecord- Overrides:
initializeRecordin classUnmarshalRecordImpl- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classUnmarshalRecordImpl- Throws:
SAXException
-