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 Summary

    Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.oxm.record.XMLRecord

    org.eclipse.persistence.internal.oxm.record.XMLRecord.Nil
  • Field Summary

    Fields inherited from class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl

    currentObject, namespaceAware, parentRecord, rootElementLocalName, rootElementName, rootElementNamespaceUri, session, textWrapperFragment, xmlReader

    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

    Constructors
    Constructor
    Description
    XMLRootRecord(Class cls, org.eclipse.persistence.internal.oxm.XMLUnmarshaller unmarshaller)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    characters(char[] ch, int start, int length)
     
    void
     
    void
     
    void
    endElement(String namespaceURI, String localName, String qName)
     
    Return a populated XMLRoot object.
    void
    initializeRecord(org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping)
     
    void
     
    void
    startElement(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, unmappedContent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XMLRootRecord

      public XMLRootRecord(Class cls, org.eclipse.persistence.internal.oxm.XMLUnmarshaller unmarshaller)
      Default constructor.
  • Method Details

    • characters

      public void characters(char[] ch, int start, int length) throws SAXException
      Specified by:
      characters in interface ContentHandler
      Overrides:
      characters in class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
      Throws:
      SAXException
    • characters

      public void characters(CharSequence characters) throws SAXException
      Specified by:
      characters in interface org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
      Overrides:
      characters in class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
      Throws:
      SAXException
    • endDocument

      public void endDocument() throws SAXException
      Specified by:
      endDocument in interface ContentHandler
      Overrides:
      endDocument in class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
      Throws:
      SAXException
    • endElement

      public void endElement(String namespaceURI, String localName, String qName) throws SAXException
      Specified by:
      endElement in interface ContentHandler
      Overrides:
      endElement in class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
      Throws:
      SAXException
    • getCurrentObject

      public Object getCurrentObject()
      Return a populated XMLRoot object.
      Specified by:
      getCurrentObject in interface org.eclipse.persistence.internal.oxm.record.UnmarshalRecord
      Overrides:
      getCurrentObject in class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
    • startDocument

      public void startDocument() throws SAXException
      Specified by:
      startDocument in interface ContentHandler
      Overrides:
      startDocument in class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
      Throws:
      SAXException
    • initializeRecord

      public void initializeRecord(org.eclipse.persistence.internal.oxm.mappings.Mapping selfRecordMapping) throws SAXException
      Specified by:
      initializeRecord in interface org.eclipse.persistence.internal.oxm.record.UnmarshalRecord
      Overrides:
      initializeRecord in class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
      Throws:
      SAXException
    • startElement

      public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class org.eclipse.persistence.internal.oxm.record.UnmarshalRecordImpl
      Throws:
      SAXException