|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.agents.common.XMLContext
public class XMLContext
An instance of this class represents a parsing context within a node. Parsing functionality is implemented by extending this class to do the right thing for the context in which it is deployed. The base functionality "does nothing"; extended functionality is needed to interpret nodes and act upon them.
| Field Summary | |
|---|---|
protected java.lang.String |
localname
The localname associated with the context |
protected java.lang.String |
namespaceURI
The namespace URI associated with the context |
protected XMLContext |
previousContext
The previous context |
protected java.lang.String |
qname
The qname associated with the context |
protected org.xml.sax.Attributes |
theseAttributes
The attributes belonging to the node associated with this context |
protected XMLStream |
theStream
The stream we belong to |
| Constructor Summary | |
|---|---|
XMLContext(XMLStream theStream)
Root constructor. |
|
XMLContext(XMLStream theStream,
java.lang.String namespaceURI,
java.lang.String localname,
java.lang.String qname,
org.xml.sax.Attributes theseAttributes)
Full constructor. |
|
| Method Summary | |
|---|---|
protected XMLContext |
beginTag(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
This method is meant to be extended by classes that extend this class. |
void |
characters(char[] ch,
int start,
int length)
Handle content of a tag |
void |
cleanup()
Cleanup this context object, and then recurse up the chain. |
void |
endDocument()
Handle the end of the document |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Handle the end of a tag |
protected void |
endTag()
This method is meant to be extended by classes that extend this class |
java.lang.String |
getAttribute(java.lang.String attributeName)
Get an attribute's value, if any |
java.lang.String |
getLocalname()
Get the localname of this node |
java.lang.String |
getNamespaceURI()
Get the namespace URI of this node |
java.lang.String |
getQname()
Get the qname of this node |
void |
startDocument()
Handle the start of the document |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Handle the start of a tag |
protected void |
tagCleanup()
Override this method to be called during cleanup |
protected void |
tagContents(char[] ch,
int start,
int length)
This method is meant to be extended by classes that extend this class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XMLStream theStream
protected XMLContext previousContext
protected org.xml.sax.Attributes theseAttributes
protected java.lang.String namespaceURI
protected java.lang.String localname
protected java.lang.String qname
| Constructor Detail |
|---|
public XMLContext(XMLStream theStream)
public XMLContext(XMLStream theStream,
java.lang.String namespaceURI,
java.lang.String localname,
java.lang.String qname,
org.xml.sax.Attributes theseAttributes)
| Method Detail |
|---|
public java.lang.String getAttribute(java.lang.String attributeName)
public java.lang.String getNamespaceURI()
public java.lang.String getLocalname()
public java.lang.String getQname()
public final void startDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public final void endDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public final void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public final void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public final void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public final void cleanup()
throws ManifoldCFException
ManifoldCFException
protected XMLContext beginTag(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
throws ManifoldCFException,
ServiceInterruption
ManifoldCFException
ServiceInterruption
protected void endTag()
throws ManifoldCFException,
ServiceInterruption
ManifoldCFException
ServiceInterruption
protected void tagContents(char[] ch,
int start,
int length)
throws ManifoldCFException,
ServiceInterruption
ManifoldCFException
ServiceInterruption
protected void tagCleanup()
throws ManifoldCFException
ManifoldCFException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||