|
|||||||||
| Home >> All >> joelib >> io >> types >> [ cml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
joelib.io.types.cml
Class CMLHandler

java.lang.Objectorg.xml.sax.helpers.DefaultHandler
joelib.io.types.cml.CMLHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class CMLHandler
- extends org.xml.sax.helpers.DefaultHandler
SAX2 implementation for CML XML fragment reading. CML Core is supported as well is the CRML module.
Data is stored into the Chemical Document Object which is passed when instantiating this class.
| Field Summary | |
private ModuleInterface |
conv
|
private static org.apache.log4j.Category |
logger
|
private java.util.Hashtable |
userConventions
|
| Constructor Summary | |
CMLHandler(CDOInterface cdo)
Constructor for the CMLHandler. |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Implementation of the characters() procedure overwriting the DefaultHandler interface. |
void |
doctypeDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
endDocument()
Calling this procedure signals the end of the XML document. |
void |
endElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw)
Receive notification of the end of an element. |
void |
registerConvention(java.lang.String convention,
ModuleInterface conv)
|
CDOInterface |
returnCDO()
|
void |
startDocument()
Receive notification of the beginning of the document. |
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String raw,
org.xml.sax.Attributes atts)
Receive notification of the start of an element. |
| 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 |
logger
private static org.apache.log4j.Category logger
userConventions
private java.util.Hashtable userConventions
conv
private ModuleInterface conv
| Constructor Detail |
CMLHandler
public CMLHandler(CDOInterface cdo)
- Constructor for the CMLHandler.
| Method Detail |
characters
public void characters(char[] ch,
int start,
int length)
- Implementation of the characters() procedure overwriting the DefaultHandler interface.
doctypeDecl
public void doctypeDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws java.lang.Exception
endDocument
public void endDocument()
- Calling this procedure signals the end of the XML document.
endElement
public void endElement(java.lang.String uri, java.lang.String local, java.lang.String raw)
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive notification of the end of an element.
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).
registerConvention
public void registerConvention(java.lang.String convention, ModuleInterface conv)
returnCDO
public CDOInterface returnCDO()
startDocument
public void startDocument()
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive notification of the beginning of the document.
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).
startElement
public void startElement(java.lang.String uri, java.lang.String local, java.lang.String raw, org.xml.sax.Attributes atts)
- Description copied from class:
org.xml.sax.helpers.DefaultHandler - Receive notification of the start of an element.
By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
|
|||||||||
| Home >> All >> joelib >> io >> types >> [ cml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC