|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.xml.sax.ext.DefaultHandler2
org.modeshape.sequencer.xml.XmlSequencerHandler
public class XmlSequencerHandler
A DefaultHandler2
implementation that is used by the sequencer.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.xml.sax.ext.DefaultHandler2 |
---|
attributeDecl, elementDecl, endDTD, getExternalSubset, resolveEntity, resolveEntity |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, fatalError, ignorableWhitespace, notationDecl, setDocumentLocator, skippedEntity, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static TextDecoder DEFAULT_DECODER
public static XmlSequencer.AttributeScoping DEFAULT_ATTRIBUTE_SCOPING
XmlSequencer.AttributeScoping
.
protected final TextDecoder decoder
Method Detail |
---|
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 ContentHandler
startDocument
in class DefaultHandler
SAXException
DefaultHandler.startDocument()
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
startDTD
in class DefaultHandler2
SAXException
DefaultHandler2.startDTD(String, String, String)
public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
externalEntityDecl
in interface DeclHandler
externalEntityDecl
in class DefaultHandler2
SAXException
DefaultHandler2.externalEntityDecl(String, String, String)
public void internalEntityDecl(String name, String value) throws SAXException
internalEntityDecl
in interface DeclHandler
internalEntityDecl
in class DefaultHandler2
SAXException
DefaultHandler2.internalEntityDecl(String, String)
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
processingInstruction
in class DefaultHandler
SAXException
DefaultHandler.processingInstruction(String, String)
public 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 ContentHandler
startPrefixMapping
in class DefaultHandler
SAXException
DefaultHandler.startPrefixMapping(String, String)
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class DefaultHandler
SAXException
DefaultHandler.endPrefixMapping(String)
public void startEntity(String name)
startEntity
in interface LexicalHandler
startEntity
in class DefaultHandler2
DefaultHandler2.startEntity(String)
public void endEntity(String name)
endEntity
in interface LexicalHandler
endEntity
in class DefaultHandler2
DefaultHandler2.endEntity(String)
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
startCDATA
in class DefaultHandler2
SAXException
DefaultHandler2.startCDATA()
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
endCDATA
in class DefaultHandler2
SAXException
DefaultHandler2.endCDATA()
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
DefaultHandler.characters(char[], int, int)
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
comment
in class DefaultHandler2
SAXException
DefaultHandler2.comment(char[], int, int)
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
DefaultHandler.startElement(String, String, String, org.xml.sax.Attributes)
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void warning(SAXParseException warning)
warning
in interface ErrorHandler
warning
in class DefaultHandler
DefaultHandler.warning(org.xml.sax.SAXParseException)
public void error(SAXParseException error)
error
in interface ErrorHandler
error
in class DefaultHandler
DefaultHandler.error(org.xml.sax.SAXParseException)
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |