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, warningpublic IsotopeHandler(IChemObjectBuilder builder)
builder - The IChemObjectBuilder used to create new IIsotope's.public List<IIsotope> getIsotopes()
public void startDocument()
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerpublic void endElement(String uri, String local, String raw)
endElement in interface ContentHandlerendElement in class DefaultHandlerpublic void startElement(String uri, String local, String raw, Attributes atts)
startElement in interface ContentHandlerstartElement in class DefaultHandlerpublic void characters(char[] chars,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandlerCopyright © 2021. All rights reserved.