|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
TQLHandler
public class TQLHandler
This class handles the content of XML in TEST-files. For each tag, there is a definition of action to take. This is usually related to putting the attribute data of the tag somewhere.
TQLParser
Field Summary | |
---|---|
java.util.ArrayList<TQLAbstract> |
abstracts
|
boolean |
inBlock
|
OntologyParser |
op
|
TQL |
t
|
TQLAbstract |
tqlabstract
|
Constructor Summary | |
---|---|
TQLHandler()
A TQLHandler can be constructed without any particular parameters |
Method Summary | |
---|---|
void |
characters(char[] buf,
int offset,
int len)
The string between tags (usually empty) is processed by this method. |
void |
emit(java.lang.String s)
|
void |
endDocument()
Invoked when a document is finished parsed. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
This method completes the action of startElement, namely unsets references that has been set, and adding items to misc lists. |
java.util.ArrayList |
getAbstracts()
Accessor method to get the abstracts that has been handled by this Handler. |
void |
setOntologyParser(OntologyParser op)
Method to set the ontologyparser this Handler should use. |
void |
startDocument()
Invoked when a document is about to be parsed.\ Does nothing. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
Called when the parser find a new starting tag. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public OntologyParser op
public TQLAbstract tqlabstract
public java.util.ArrayList<TQLAbstract> abstracts
public boolean inBlock
public TQL t
Constructor Detail |
---|
public TQLHandler()
Method Detail |
---|
public void setOntologyParser(OntologyParser op)
op
- an ontologyparserpublic void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName, org.xml.sax.Attributes attrs) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
endElement(String, String, String)
public void endElement(java.lang.String namespaceURI, java.lang.String sName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
startElement(String, String, String, Attributes)
public void characters(char[] buf, int offset, int len) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void emit(java.lang.String s) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.util.ArrayList getAbstracts()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |