public class XmlSequencerHandler extends DefaultHandler2
DefaultHandler2 implementation that is used by the sequencer.| Modifier and Type | Field and Description |
|---|---|
protected TextDecoder |
decoder
The TextDecoder that is used to decode the names.
|
static XmlSequencer.AttributeScoping |
DEFAULT_ATTRIBUTE_SCOPING
The default
XmlSequencer.AttributeScoping. |
static TextDecoder |
DEFAULT_DECODER
Decoder for XML names, to turn '_xHHHH_' sequences in the XML element and attribute names into the corresponding UTF-16
characters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
comment(char[] ch,
int start,
int length) |
void |
endCDATA() |
protected void |
endContent()
See if there is any element content that needs to be completed.
|
void |
endElement(String uri,
String localName,
String name) |
void |
endEntity(String name) |
void |
endPrefixMapping(String prefix) |
void |
error(SAXParseException error) |
void |
externalEntityDecl(String name,
String publicId,
String systemId) |
void |
internalEntityDecl(String name,
String value) |
void |
processingInstruction(String target,
String data) |
void |
startCDATA() |
void |
startDocument() |
void |
startDTD(String name,
String publicId,
String systemId) |
void |
startElement(String uri,
String localName,
String name,
Attributes attributes) |
void |
startEntity(String name) |
void |
startPrefixMapping(String prefix,
String uri)
This method ensures that the namespace is registered with the
registry, using the supplied prefix
to register the namespace if required. |
void |
warning(SAXParseException warning) |
attributeDecl, elementDecl, endDTD, getExternalSubset, resolveEntity, resolveEntityendDocument, fatalError, ignorableWhitespace, notationDecl, setDocumentLocator, skippedEntity, unparsedEntityDeclpublic static TextDecoder DEFAULT_DECODER
public static XmlSequencer.AttributeScoping DEFAULT_ATTRIBUTE_SCOPING
XmlSequencer.AttributeScoping.protected final TextDecoder decoder
protected void endContent()
throws RepositoryException
RepositoryException - if there is a problem writing the content to the repository sessionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD in interface LexicalHandlerstartDTD in class DefaultHandler2SAXExceptionpublic void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
externalEntityDecl in interface DeclHandlerexternalEntityDecl in class DefaultHandler2SAXExceptionpublic void internalEntityDecl(String name, String value) throws SAXException
internalEntityDecl in interface DeclHandlerinternalEntityDecl in class DefaultHandler2SAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class DefaultHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
This method ensures that the namespace is registered with the registry, using the supplied prefix
to register the namespace if required. Note that because this class does not really use the namespace prefixes to create
names, no attempt is made to match the XML namespace prefixes.
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerSAXExceptionDefaultHandler.startPrefixMapping(String, String)public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerendPrefixMapping in class DefaultHandlerSAXExceptionpublic void startEntity(String name)
startEntity in interface LexicalHandlerstartEntity in class DefaultHandler2public void endEntity(String name)
endEntity in interface LexicalHandlerendEntity in class DefaultHandler2public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerstartCDATA in class DefaultHandler2SAXExceptionpublic void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerendCDATA in class DefaultHandler2SAXExceptionpublic void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerpublic void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlercomment in class DefaultHandler2SAXExceptionpublic void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String name) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void warning(SAXParseException warning)
warning in interface ErrorHandlerwarning in class DefaultHandlerpublic void error(SAXParseException error)
error in interface ErrorHandlererror in class DefaultHandlerCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.