Class JSONWriterRecord.JSONWriterRecordContentHandler
java.lang.Object
org.eclipse.persistence.oxm.record.JSONWriterRecord.JSONWriterRecordContentHandler
- All Implemented Interfaces:
org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler,ContentHandler,LexicalHandler
- Enclosing class:
- JSONWriterRecord
protected class JSONWriterRecord.JSONWriterRecordContentHandler
extends Object
implements org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler, 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 written to the enclosing class'
writer.
- See Also:
-
XMLFragmentReader
-
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidcharacters(CharSequence characters) voidcomment(char[] ch, int start, int length) voidendCDATA()voidvoidendDTD()voidendElement(String namespaceURI, String localName, String qName) voidvoidendPrefixMapping(String prefix) protected voidhandleAttributes(Attributes atts) voidignorableWhitespace(char[] ch, int start, int length) voidprocessingInstruction(String target, String data) voidsetDocumentLocator(Locator locator) voidsetNil(boolean isNil) This method can be used to track that the current element is nilvoidskippedEntity(String name) voidvoidvoidvoidstartElement(String namespaceURI, String localName, String qName, Attributes atts) voidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri) protected voidwriteCharacters(char[] chars, int start, int length) protected voidwriteComment(char[] chars, int start, int length)
-
Method Details
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceorg.eclipse.persistence.internal.oxm.record.ExtendedContentHandler- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
handleAttributes
-
writeComment
protected void writeComment(char[] chars, int start, int length) -
writeCharacters
protected void writeCharacters(char[] chars, int start, int length) -
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
setNil
public void setNil(boolean isNil) Description copied from interface:org.eclipse.persistence.internal.oxm.record.ExtendedContentHandlerThis method can be used to track that the current element is nil- Specified by:
setNilin interfaceorg.eclipse.persistence.internal.oxm.record.ExtendedContentHandler
-