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:
XMLFragmentReader
-
-
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(String name)
void
startCDATA()
void
startDTD(String name, String publicId, String systemId)
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)
void
startEntity(String name)
void
startPrefixMapping(String prefix, String uri)
-
-
-
Constructor Detail
-
NodeRecordContentHandler
public NodeRecordContentHandler(NodeRecord nRec, org.eclipse.persistence.internal.oxm.NamespaceResolver resolver)
-
-
Method Detail
-
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
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classorg.eclipse.persistence.internal.oxm.MarshalRecordContentHandler
- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
-