public class ThermoHandler extends NodeHandler
subHandler
Constructor and Description |
---|
ThermoHandler(String nodeName)
creates a ThermoHandler object and initialises the instance variables of this object.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String name) |
HashMap<String,String> |
getAttribut()
This method is called to get the attribut HashMap of the ThermoHandler object.
|
Double |
getEnthalpy()
This method is called to get the enthalpy double value of the ThermoHandler object.
|
Double |
getEntropy()
This method is called to get the entropy double value of the ThermoHandler object.
|
String |
getName()
This method is called to get the name String of the ThermoHandler object.
|
Thermodynamics |
getThermo()
This method is called to get the Thermodynamics of the ThermoHandler object.
|
void |
initialiseAttributes()
initialises the attribut HashMap of the ThermoHandler object.
|
void |
startElement(String uri,
String localName,
String name,
Attributes attributes) |
completedNode, hasCompletedNode
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public ThermoHandler(String nodeName)
nodeName
- : node namepublic String getName()
public Double getEnthalpy()
public Double getEntropy()
public Thermodynamics getThermo()
public HashMap<String,String> getAttribut()
public void initialiseAttributes()
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException