Class XMLStringContext
- java.lang.Object
-
- org.apache.manifoldcf.agents.common.XMLContext
-
- org.apache.manifoldcf.agents.common.XMLStringContext
-
public class XMLStringContext extends XMLContext
An instance of this class represents a parsing context within a node, where the data value is to be recorded as an in-memory string. The data string is available as a local StringBuilder object, which will be accessible to any class that extends this one.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringBuilder
value
The string buffer-
Fields inherited from class org.apache.manifoldcf.agents.common.XMLContext
localname, namespaceURI, previousContext, qname, theseAttributes, theStream
-
-
Constructor Summary
Constructors Constructor Description XMLStringContext(XMLStream theStream, java.lang.String namespaceURI, java.lang.String localname, java.lang.String qname, org.xml.sax.Attributes theseAttributes)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
Get the string valueprotected 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 org.apache.manifoldcf.agents.common.XMLContext
beginTag, characters, cleanup, endDocument, endElement, endTag, getAttribute, getLocalname, getNamespaceURI, getQname, startDocument, startElement, tagCleanup
-
-
-
-
Constructor Detail
-
XMLStringContext
public XMLStringContext(XMLStream theStream, java.lang.String namespaceURI, java.lang.String localname, java.lang.String qname, org.xml.sax.Attributes theseAttributes)
Full constructor. Used for individual tags.
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Get the string value
-
tagContents
protected void tagContents(char[] ch, int start, int length) throws ManifoldCFException
This method is meant to be extended by classes that extend this class- Overrides:
tagContents
in classXMLContext
- Throws:
ManifoldCFException
-
-