|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.lehmannet.om.SchemaElement
de.lehmannet.om.Finding
public abstract class Finding
The abstract class Finding provides some common features that may be
used by the subclasses of an de.lehmannet.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 de.lehmannet.om.IFinding |
|---|
XML_ELEMENT_ATTRIBUTE_LANGUAGE, XML_ELEMENT_DESCRIPTION, XML_ELEMENT_FINDING |
| Fields inherited from interface de.lehmannet.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Fields inherited from interface de.lehmannet.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. |
java.lang.String |
getLanguage()
Returns the language in which this session is described as ISO language string. |
void |
setDescription(java.lang.String description)
Sets the description of the Finding. |
void |
setLanguage(java.lang.String language)
Sets the language in which this finding is described. |
void |
setSeen(boolean seen)
Set to true if the target was seen by the observer. |
boolean |
wasSeen()
Returns true if the target was seen with this finding
or not. |
| Methods inherited from class de.lehmannet.om.SchemaElement |
|---|
equals, getDisplayName, getID, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.lehmannet.om.ISchemaElement |
|---|
getDisplayName, getID |
| Methods inherited from interface de.lehmannet.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 nullpublic java.lang.String getLanguage()
null if no
language was set for this session.
getLanguage in interface IFindingnull if
no language was set at all.public void setLanguage(java.lang.String language)
setLanguage in interface IFindinglanguage - ISO language stringpublic boolean wasSeen()
true if the target was seen with this finding
or not.
As findings might be created to document that an object was not seen
this flag can be used for checks.
wasSeen in interface IFindingtrue if the target was seen with this findingpublic void setSeen(boolean seen)
true if the target was seen by the observer.
setSeen in interface IFindingseen - true if the target was seen by the observer or
false if the target was not seenprotected 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 | ||||||||