Class NodeRecord.NodeRecordContentHandler

  • All Implemented Interfaces:
    org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
    Enclosing class:
    NodeRecord

    protected class NodeRecord.NodeRecordContentHandler
    extends org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
    implements org.xml.sax.ext.LexicalHandler
    This class will typically be used in conjunction with an XMLFragmentReader. The XMLFragmentReader will walk a given XMLFragment node and report events to this class - the event's data is then used to create required attributes and elements which are appended to the the enclosing class' document.
    See Also:
    XMLFragmentReader
    • Field Summary

      • Fields inherited from class org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler

        marshalRecord, resolver
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeRecordContentHandler​(NodeRecord nRec, org.eclipse.persistence.internal.oxm.NamespaceResolver resolver)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void comment​(char[] ch, int start, int length)  
      void endCDATA()  
      void endDTD()  
      void endEntity​(java.lang.String name)  
      void startCDATA()  
      void startDTD​(java.lang.String name, java.lang.String publicId, java.lang.String systemId)  
      void startElement​(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)  
      void startEntity​(java.lang.String name)  
      void startPrefixMapping​(java.lang.String prefix, java.lang.String uri)  
      • Methods inherited from class org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler

        characters, characters, endDocument, endElement, endPrefixMapping, getMarshalRecord, ignorableWhitespace, processingInstruction, setDocumentLocator, setMarshalRecord, setNil, skippedEntity, startDocument
      • Methods inherited from class java.lang.Object

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

      • NodeRecordContentHandler

        public NodeRecordContentHandler​(NodeRecord nRec,
                                        org.eclipse.persistence.internal.oxm.NamespaceResolver resolver)
    • Method Detail

      • 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 org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
        Throws:
        org.xml.sax.SAXException
      • startPrefixMapping

        public void startPrefixMapping​(java.lang.String prefix,
                                       java.lang.String uri)
                                throws org.xml.sax.SAXException
        Specified by:
        startPrefixMapping in interface org.xml.sax.ContentHandler
        Overrides:
        startPrefixMapping in class org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
        Throws:
        org.xml.sax.SAXException
      • startDTD

        public void startDTD​(java.lang.String name,
                             java.lang.String publicId,
                             java.lang.String systemId)
                      throws org.xml.sax.SAXException
        Specified by:
        startDTD in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • endDTD

        public void endDTD()
                    throws org.xml.sax.SAXException
        Specified by:
        endDTD in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • startEntity

        public void startEntity​(java.lang.String name)
                         throws org.xml.sax.SAXException
        Specified by:
        startEntity in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • endEntity

        public void endEntity​(java.lang.String name)
                       throws org.xml.sax.SAXException
        Specified by:
        endEntity in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • startCDATA

        public void startCDATA()
                        throws org.xml.sax.SAXException
        Specified by:
        startCDATA in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • endCDATA

        public void endCDATA()
                      throws org.xml.sax.SAXException
        Specified by:
        endCDATA in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException
      • comment

        public void comment​(char[] ch,
                            int start,
                            int length)
                     throws org.xml.sax.SAXException
        Specified by:
        comment in interface org.xml.sax.ext.LexicalHandler
        Throws:
        org.xml.sax.SAXException