Class EventCMLHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.openscience.cdk.io.cml.CMLHandler
org.openscience.cdk.io.iterator.event.EventCMLHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
CDO object needed as interface with the JCFL library for reading CML
in a event based manner.
The CDO only takes care about atoms, bonds and molecules.
- Author:
- Egon Willighagen <egonw@sci.kun.nl>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEventCMLHandler(DefaultEventChemObjectReader eventReader, IChemObjectBuilder builder) Constructs an iterating-abled CDO. -
Method Summary
Modifier and TypeMethodDescriptionvoidProcedure required by the CDOInterface.voidProcedure required by the CDOInterface.voidsetDocumentProperty(String type, String value) Procedure required by the CDOInterface.voidsetObjectProperty(String objectType, String propertyType, String propertyValue) Procedure required by the CDOInterface.voidProcedure required by the CDOInterface.voidstartObject(String objectType) Procedure required by the CDOInterface.Methods inherited from class org.openscience.cdk.io.cml.CMLHandler
characters, doctypeDecl, endElement, registerConvention, startElementMethods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
logger
-
-
Constructor Details
-
EventCMLHandler
Constructs an iterating-abled CDO. After reading one molecule it fires a frameRead event.
-
-
Method Details
-
getAtomContainer
-
startDocument
public void startDocument()Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classCMLHandler
-
endDocument
public void endDocument()Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classCMLHandler
-
setDocumentProperty
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library -
startObject
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library -
endObject
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library -
setObjectProperty
Procedure required by the CDOInterface. This function is only supposed to be called by the JCFL library
-