|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.om.SchemaElement
org.jscience.ml.om.Finding
public abstract class Finding
The abstract class Finding provides some common features that may be
used by the subclasses of an org.jscience.ml.om.IFinding.
The Finding class stores a description of the findings and provides simple
access to this description field. It also implements a basic XML DOM helper
method that may be used by all subclasses that have to implement the
IFinding interface.
| Field Summary |
|---|
| Fields inherited from interface org.jscience.ml.om.IFinding |
|---|
XML_ELEMENT_DESCRIPTION, XML_ELEMENT_FINDING |
| Fields inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Fields inherited from interface org.jscience.ml.om.IExtendableSchemaElement |
|---|
XML_XSI_TYPE |
| Constructor Summary | |
|---|---|
protected |
Finding(org.w3c.dom.Node findingElement)
Protected constructor used by subclasses construction. |
protected |
Finding(java.lang.String description)
Protected constructor used by subclasses construction. |
protected |
Finding(java.lang.String ID,
java.lang.String description)
Protected constructor used by subclasses construction. |
| Method Summary | |
|---|---|
abstract org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element parent)
Adds the Finding to an given parent XML DOM Element. |
protected org.w3c.dom.Element |
createXmlFindingElement(org.w3c.dom.Element parent)
Creates an XML DOM Element for the Finding. |
java.lang.String |
getDescription()
Returns the description of the Finding. |
void |
setDescription(java.lang.String description)
Sets the description of the Finding. |
| Methods inherited from class org.jscience.ml.om.SchemaElement |
|---|
getDisplayName, getID, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
getDisplayName, getID |
| Methods inherited from interface org.jscience.ml.om.IExtendableSchemaElement |
|---|
getXSIType |
| Constructor Detail |
|---|
protected Finding(org.w3c.dom.Node findingElement)
throws SchemaException
findingElement - The XML Node representing this Finding
SchemaException - if the XML element is malformed
protected Finding(java.lang.String ID,
java.lang.String description)
throws java.lang.IllegalArgumentException
ID - This elements unique IDdescription - The description of the finding
java.lang.IllegalArgumentException - if description was null
protected Finding(java.lang.String description)
throws java.lang.IllegalArgumentException
description - The description of the finding
java.lang.IllegalArgumentException - if description was null| Method Detail |
|---|
public abstract org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element parent)
addToXmlElement in interface IFindingparent - The parent element for the Finding
Element,
IFindingpublic java.lang.String getDescription()
getDescription in interface IFinding
public void setDescription(java.lang.String description)
throws java.lang.IllegalArgumentException
setDescription in interface IFindingdescription - A description of the finding.
java.lang.IllegalArgumentException - if description was nullprotected org.w3c.dom.Element createXmlFindingElement(org.w3c.dom.Element parent)
parent - The parent element for the Finding
null if parent was
null.Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||