Module eclipselink
Class NodeRecord.NodeRecordContentHandler
java.lang.Object
org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
org.eclipse.persistence.oxm.record.NodeRecord.NodeRecordContentHandler
- All Implemented Interfaces:
org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler,ContentHandler,LexicalHandler
- Enclosing class:
NodeRecord
protected class NodeRecord.NodeRecordContentHandler
extends org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
implements 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:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
marshalRecord, resolver -
Constructor Summary
ConstructorsConstructorDescriptionNodeRecordContentHandler(NodeRecord nRec, org.eclipse.persistence.internal.oxm.NamespaceResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionvoidcomment(char[] ch, int start, int length) voidendCDATA()voidendDTD()voidvoidvoidvoidstartElement(String namespaceURI, String localName, String qName, Attributes atts) voidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
characters, characters, endDocument, endElement, endPrefixMapping, getMarshalRecord, ignorableWhitespace, processingInstruction, setDocumentLocator, setMarshalRecord, setNil, skippedEntity, startDocumentMethods 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
-
NodeRecordContentHandler
public NodeRecordContentHandler(NodeRecord nRec, org.eclipse.persistence.internal.oxm.NamespaceResolver resolver)
-
-
Method Details
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classorg.eclipse.persistence.internal.oxm.MarshalRecordContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classorg.eclipse.persistence.internal.oxm.MarshalRecordContentHandler- Throws:
SAXException
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-