|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.HandlerBase | +--org.concord.biologica.engine.ElementContext
This class represents a context for an XML element during the process of reading that element in from a BioLogica XML file.
Constructor Summary | |
ElementContext(org.xml.sax.DocumentHandler aParentDocumentHandler,
com.sun.xml.parser.Parser anXMLParser,
ImportContext anImportContext)
Creates a new ElementContext. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Receive notification of character data. |
void |
endElement(java.lang.String anElementName)
Handle notification that the parsing of the given element has ended. |
int |
getElementID()
Return the element id |
java.lang.String |
getElementName()
Return the element name |
ImportContext |
getImportContext()
Return the import context. |
java.lang.String |
getValueString()
Return a String that contains the contents of the text buffer |
com.sun.xml.parser.Parser |
getXMLParser()
Return the parser |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receive notification of ignorable white space character data. |
void |
newElement(java.lang.String anElementName,
int anElementID)
New element is starting in an existing element context. |
Methods inherited from class org.xml.sax.HandlerBase |
endDocument, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, startElement, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ElementContext(org.xml.sax.DocumentHandler aParentDocumentHandler, com.sun.xml.parser.Parser anXMLParser, ImportContext anImportContext)
Note that the import context may not be changed once set.
aParentDocumentHandler
- DocumentHandler - the parent document handleranXMLParser
- com.sun.xml.parser.Parser - the element parseranImportContext
- ImportContext - the import contextjava.lang.IllegalArgumentException
- - illegal argument inputMethod Detail |
public void newElement(java.lang.String anElementName, int anElementID)
anElementName
- String - the element nameanElementID
- int - the element idjava.lang.IllegalArgumentException
- - illegal argument inputpublic void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in class org.xml.sax.HandlerBase
ch
- char[] - charactersstart
- int - start of stringlength
- int - length of stringpublic void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in class org.xml.sax.HandlerBase
ch
- char[] - charactersstart
- int - start of stringlength
- int - length of stringpublic void endElement(java.lang.String anElementName) throws org.xml.sax.SAXException
endElement
in class org.xml.sax.HandlerBase
anElementName
- String - the element namepublic java.lang.String getElementName()
public int getElementID()
public com.sun.xml.parser.Parser getXMLParser()
public ImportContext getImportContext()
public java.lang.String getValueString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |