public class XMLParsingContext extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
localname
The localname associated with the context
|
protected String |
namespace
The namespace associated with the context
|
protected XMLParsingContext |
previousContext
The previous context
|
protected String |
qname
The qname associated with the context
|
protected Map<String,String> |
theseAttributes
The attributes belonging to the node associated with this context
|
protected XMLFuzzyHierarchicalParseState |
theStream
The stream we belong to
|
Constructor and Description |
---|
XMLParsingContext(XMLFuzzyHierarchicalParseState theStream)
Root constructor.
|
XMLParsingContext(XMLFuzzyHierarchicalParseState theStream,
String namespace,
String localname,
String qname,
Map<String,String> theseAttributes)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
protected XMLParsingContext |
beginTag(String namespace,
String localName,
String qName,
Map<String,String> atts)
This method is meant to be extended by classes that extend this class.
|
void |
characters(String contents)
Handle content of a tag
|
void |
cleanup()
Cleanup this context object, and then recurse up the chain.
|
void |
endElement(String namespace,
String localName,
String qName)
Handle the end of a tag
|
protected void |
endTag()
This method is meant to be extended by classes that extend this class
|
String |
getAttribute(String attributeName)
Get an attribute's value, if any
|
String |
getLocalname()
Get the localname of this node
|
String |
getNamespace()
Get the namespace name of this node
|
String |
getQname()
Get the qname of this node
|
void |
startElement(String namespace,
String localName,
String qName,
Map<String,String> atts)
Handle the start of a tag
|
protected void |
tagCleanup()
Override this method to be called during cleanup
|
protected void |
tagContents(String contents)
This method is meant to be extended by classes that extend this class
|
protected final XMLFuzzyHierarchicalParseState theStream
protected final XMLParsingContext previousContext
protected final Map<String,String> theseAttributes
protected final String namespace
protected final String localname
protected final String qname
public XMLParsingContext(XMLFuzzyHierarchicalParseState theStream)
public String getNamespace()
public String getLocalname()
public String getQname()
public final void startElement(String namespace, String localName, String qName, Map<String,String> atts) throws ManifoldCFException
ManifoldCFException
public final void endElement(String namespace, String localName, String qName) throws ManifoldCFException
ManifoldCFException
public final void characters(String contents) throws ManifoldCFException
ManifoldCFException
public final void cleanup() throws ManifoldCFException
ManifoldCFException
protected XMLParsingContext beginTag(String namespace, String localName, String qName, Map<String,String> atts) throws ManifoldCFException
ManifoldCFException
protected void endTag() throws ManifoldCFException
ManifoldCFException
protected void tagContents(String contents) throws ManifoldCFException
ManifoldCFException
protected void tagCleanup() throws ManifoldCFException
ManifoldCFException