org.eclipse.persistence.oxm.record
Class NodeRecord.NodeRecordContentHandler
java.lang.Object
org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
org.eclipse.persistence.oxm.record.NodeRecord.NodeRecordContentHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler
- Enclosing class:
- NodeRecord
protected class NodeRecord.NodeRecordContentHandler
- extends org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
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
Fields inherited from class org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler |
marshalRecord, resolver |
Method Summary |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
Methods inherited from class org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler |
characters, endDocument, endElement, endPrefixMapping, getMarshalRecord, ignorableWhitespace, processingInstruction, setDocumentLocator, setMarshalRecord, skippedEntity, startDocument |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeRecord.NodeRecordContentHandler
public NodeRecord.NodeRecordContentHandler(NodeRecord nRec,
NamespaceResolver resolver)
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