|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Path |
currentPath
The path for the node representing the current element. |
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. |
protected Name |
defaultPrimaryType
The default primary type. |
protected Name |
nameAttribute
The name of the attribute that should be used for the node name. |
protected NameFactory |
nameFactory
The cached reference to the graph's name factory. |
protected NamespaceRegistry |
namespaceRegistry
The cached reference to the graph's namespace registry. |
protected PathFactory |
pathFactory
The cached reference to the graph's path factory. |
protected PropertyFactory |
propertyFactory
The cached reference to the graph's property factory. |
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 |
fatalError(SAXParseException error)
|
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, 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 Name nameAttribute
protected final Name defaultPrimaryType
protected final PathFactory pathFactory
protected final NameFactory nameFactory
protected final PropertyFactory propertyFactory
protected final NamespaceRegistry namespaceRegistry
protected final TextDecoder decoder
protected Path currentPath
Method Detail |
---|
protected void endContent()
public void startDocument()
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
DefaultHandler.startDocument()
public void startDTD(String name, String publicId, String systemId)
startDTD
in interface LexicalHandler
startDTD
in class DefaultHandler2
DefaultHandler2.startDTD(java.lang.String, java.lang.String, java.lang.String)
public void externalEntityDecl(String name, String publicId, String systemId)
externalEntityDecl
in interface DeclHandler
externalEntityDecl
in class DefaultHandler2
DefaultHandler2.externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)
public void internalEntityDecl(String name, String value)
internalEntityDecl
in interface DeclHandler
internalEntityDecl
in class DefaultHandler2
DefaultHandler2.internalEntityDecl(java.lang.String, java.lang.String)
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
processingInstruction
in class DefaultHandler
DefaultHandler.processingInstruction(java.lang.String, java.lang.String)
public 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. Note that because this class does not really use the namespace prefixes to create
Name
objects, no attempt is made to match the XML namespace prefixes.
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class DefaultHandler
DefaultHandler.startPrefixMapping(java.lang.String, java.lang.String)
public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
endPrefixMapping
in class DefaultHandler
DefaultHandler.endPrefixMapping(java.lang.String)
public void startEntity(String name)
startEntity
in interface LexicalHandler
startEntity
in class DefaultHandler2
DefaultHandler2.startEntity(java.lang.String)
public void endEntity(String name)
endEntity
in interface LexicalHandler
endEntity
in class DefaultHandler2
DefaultHandler2.endEntity(java.lang.String)
public void startCDATA()
startCDATA
in interface LexicalHandler
startCDATA
in class DefaultHandler2
DefaultHandler2.startCDATA()
public void endCDATA()
endCDATA
in interface LexicalHandler
endCDATA
in class DefaultHandler2
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)
comment
in interface LexicalHandler
comment
in class DefaultHandler2
DefaultHandler2.comment(char[], int, int)
public void startElement(String uri, String localName, String name, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
DefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String,
org.xml.sax.Attributes)
public void endElement(String uri, String localName, String name)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
XmlHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
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)
public void fatalError(SAXParseException error)
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
DefaultHandler.fatalError(org.xml.sax.SAXParseException)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |