|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
GENIAHandler
public class GENIAHandler
This class handles the content of XML in GOLD-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.
GENIAParser
Field Summary | |
---|---|
java.util.ArrayList<GAbstract> |
abstracts
|
boolean |
debug_geh
|
GAbstract |
gabstract
|
GEvent |
ge
|
GSentence |
gs
|
java.lang.String |
lastTag
|
int |
sentencecounter
|
Constructor Summary | |
---|---|
GENIAHandler()
This class does not need anything in particular to be instantiated. |
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 for getting the abstracts handled by this handler. |
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 java.util.ArrayList<GAbstract> abstracts
public GAbstract gabstract
public GSentence gs
public GEvent ge
public java.lang.String lastTag
public int sentencecounter
public boolean debug_geh
Constructor Detail |
---|
public GENIAHandler()
Method Detail |
---|
public 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 |