Inheritance diagram for tit.observation.io.ObservationXMLReader:
Public Member Functions | |
ObservationXMLReader (Document document) throws IOException | |
Observable | getObservation () |
Personality | getPersonality () |
Private Member Functions | |
Element | getOnlyChildElement (Element parent, String name) throws NoOnlyChildException |
Private Attributes | |
AdjustablePersonality | personality |
ReproducableObservation | observation |
Classes | |
class | NoOnlyChildException |
tit.observation.io.ObservationXMLReader.ObservationXMLReader | ( | Document | document | ) | throws IOException |
Constructs a new ObservationXmlReader
which gets its input from a DOM-document.
document | A DOM-document containing the info. |
IOException | is thrown when an error occurs while reading. |
Element tit.observation.io.ObservationXMLReader.getOnlyChildElement | ( | Element | parent, | |
String | name | |||
) | throws NoOnlyChildException [private] |
Gets the only child with name name
from parent
parent | The parent node. | |
name | The name of the child. |
NoOnlyChildException | Is thrown when parent hasn't got an only child with name name . |
parent
with name name
. Observable tit.observation.io.ObservationXMLReader.getObservation | ( | ) |
Returns the read Observation
.
Observation
. Implements tit.observation.io.ObservationReader.
Personality tit.observation.io.ObservationXMLReader.getPersonality | ( | ) |
Returns the read Personality
.
Personality
. Implements tit.observation.io.ObservationReader.
The the read personality data.
The the read observation data.