Module org.eclipse.persistence.core
Class NodeRecord.NodeRecordContentHandler
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
-
- org.eclipse.persistence.oxm.record.NodeRecord.NodeRecordContentHandler
-
- All Implemented Interfaces:
ExtendedContentHandler,ContentHandler,LexicalHandler
- Enclosing class:
- NodeRecord
protected class NodeRecord.NodeRecordContentHandler extends 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
Constructors Constructor Description NodeRecordContentHandler(NodeRecord nRec, NamespaceResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomment(char[] ch, int start, int length)voidendCDATA()voidendDTD()voidendEntity(String name)voidstartCDATA()voidstartDTD(String name, String publicId, String systemId)voidstartElement(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, startDocument
-
-
-
-
Constructor Detail
-
NodeRecordContentHandler
public NodeRecordContentHandler(NodeRecord nRec, NamespaceResolver resolver)
-
-
Method Detail
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classMarshalRecordContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classMarshalRecordContentHandler- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
-