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:
-
XMLFragmentReader
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
marshalRecord, resolver
-
Constructor Summary
ConstructorDescriptionNodeRecordContentHandler
(NodeRecord nRec, org.eclipse.persistence.internal.oxm.NamespaceResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
comment
(char[] ch, int start, int length) void
endCDATA()
void
endDTD()
void
void
void
void
startElement
(String namespaceURI, String localName, String qName, Attributes atts) void
startEntity
(String name) void
startPrefixMapping
(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, startDocument
-
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:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classorg.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classorg.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
- Throws:
SAXException
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-