|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler uk.org.iscream.cms.util.XMLStringParser
XMLStringParser - Used to assist in creating XMLPacket objects.
Field Summary | |
private String |
_name
This is the friendly identifier of the component this class is running in. |
private XMLPacket |
_packet
A reference to the XMLPacket we are making |
private LinkedList |
_tagList
A LinkedList of tags |
String |
REVISION
The current CVS revision of this class |
Constructor Summary | |
XMLStringParser()
No-args constructor. |
|
XMLStringParser(XMLPacket packet)
Constructor for accepting a reference to an XMLPacket |
Method Summary | |
void |
characters(char[] buf,
int offset,
int len)
Any text falling within a pair of terminal tags must be added to the XMLPacket. |
void |
endElement(String uri,
String name,
String qName)
When an XML element is finished with, we must remove the tag name from the tagList and decrement the indent level. |
private String |
getPath()
Return the heirarchical string to be used as a key value in the XMLPacket. |
XMLPacket |
getXMLPacket()
Accessor to the XMLPacket. |
void |
startElement(String uri,
String name,
String qName,
Attributes atts)
Add each tag's attribute to the XMLPacket. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final String REVISION
private LinkedList _tagList
private XMLPacket _packet
private String _name
Constructor Detail |
public XMLStringParser()
public XMLStringParser(XMLPacket packet)
Method Detail |
public void startElement(String uri, String name, String qName, Attributes atts)
public void endElement(String uri, String name, String qName)
public void characters(char[] buf, int offset, int len) throws SAXException
SAXException
public String toString()
Object.toString()
method to provide clean logging (every class should have this).
This uses the uk.org.iscream.cms.server.util.NameFormat class
to format the toString()
private String getPath()
public XMLPacket getXMLPacket()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |