|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A SAX handler with FlexMol-specific extensions. FlexMolHandler can be used
in any situation calling for a SAX ContentHandler. A
RepresentationBuilder and AtomicSystem need to be set
prior to document processing, or a SAXException will be thrown by
any XMLReader using the FlexMolHandler.
Content (elements or attributes) not understood by a FlexMolHandler
will be ignored and will never result in a thrown exception.
| Method Summary | |
AtomicSystem |
getAtomicSystem()
Returns the AtomicSystem in use by this FlexMolHandler. |
AtomProxy |
getAtomProxy(java.lang.String id)
Returns the AtomProxy associated with id in the FlexMol
document being processed. |
java.lang.String |
getCurrentElement()
Returns the current element being processed by this FlexMolHandler. |
RepresentationBuilder |
getRepresentationBuilder()
Returns the RepresenationBuilder in use by this
FlexMolHandler. |
void |
setAtomicSystem(AtomicSystem system)
Sets the AtomicSystem to be used by this
FlexMolHandler. |
void |
setRepresentationBuilder(RepresentationBuilder builder)
Sets the RepresentationBuilder that will be used with
this FlexMolHandler. |
| Methods inherited from interface org.xml.sax.ContentHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping |
| Method Detail |
public void setRepresentationBuilder(RepresentationBuilder builder)
RepresentationBuilder that will be used with
this FlexMolHandler. Failure to set a RepresentationBuilder
will result in a SAXException being thrown upon
invocation of XMLReader.parse.
builder - the RepresenationBuilder that will be
used with this FlexMolHandlerpublic RepresentationBuilder getRepresentationBuilder()
RepresenationBuilder in use by this
FlexMolHandler.
RepresenationBuilder in use by this
FlexMolHandlerpublic void setAtomicSystem(AtomicSystem system)
AtomicSystem to be used by this
FlexMolHandler. Failure to set an AtomicSystem
will result in a SAXException being thrown upon
invocation of XMLReader.parse.
system - the AtomicSystem to be used by this
FlexMolHandlerpublic AtomicSystem getAtomicSystem()
AtomicSystem in use by this FlexMolHandler.
AtomicSystem in use by this FlexMolHandlerpublic java.lang.String getCurrentElement()
FlexMolHandler.
FlexMolHandler,
or "", but not nullpublic AtomProxy getAtomProxy(java.lang.String id)
AtomProxy associated with id in the FlexMol
document being processed.
id - the atom id
AtomProxy associated with id in the FlexMol
document being processed, or null if none is found
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||