public class IsotopeHandler extends DefaultHandler
<isotopeList id="H">
<isotope id="H1" isotopeNumber="1" elementTyp="H">
<abundance dictRef="cdk:relativeAbundance">100.0</abundance>
<scalar dictRef="cdk:exactMass">1.00782504</scalar>
<scalar dictRef="cdk:atomicNumber">1</scalar>
</isotope>
<isotope id="H2" isotopeNumber="2" elementTyp="H">
<abundance dictRef="cdk:relativeAbundance">0.015</abundance>
<scalar dictRef="cdk:exactMass">2.01410179</scalar>
<scalar dictRef="cdk:atomicNumber">1</scalar>
</isotope>
</isotopeList>
Constructor and Description |
---|
IsotopeHandler(IChemObjectBuilder builder)
Constructs an IsotopeHandler used by the IsotopeReader.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] chars,
int start,
int length) |
void |
endElement(String uri,
String local,
String raw) |
List<IIsotope> |
getIsotopes()
Returns the isotopes read from the XML file.
|
void |
startDocument() |
void |
startElement(String uri,
String local,
String raw,
Attributes atts) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public IsotopeHandler(IChemObjectBuilder builder)
builder
- The IChemObjectBuilder used to create new IIsotope's.public List<IIsotope> getIsotopes()
public void startDocument()
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
public void endElement(String uri, String local, String raw)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
public void startElement(String uri, String local, String raw, Attributes atts)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
public void characters(char[] chars, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
Copyright © 2021. All rights reserved.