|
|||||||||
| 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.Filter
public class Filter
Filter implements the class de.lehmannet.om.IFilter.
A Filter describes a optical filter used during the
observation.
This includes all kind of filters like color filters, band filter, ...
The model name and the type are
mandatory fields which have to be set.
| Field Summary |
|---|
| Fields inherited from interface de.lehmannet.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Constructor Summary | |
|---|---|
Filter(org.w3c.dom.Node filter)
Constructs a new instance of a Filter from an given XML Schema Node. |
|
Filter(java.lang.String model,
java.lang.String type)
Constructs a new instance of a Filter. |
|
| Method Summary | |
|---|---|
org.w3c.dom.Element |
addAsLinkToXmlElement(org.w3c.dom.Element element)
Adds the filter link to an given XML DOM Element The filter element itself will be attached to given elements ownerDocument. |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Filter to a given parent XML DOM Element. |
java.lang.String |
getColor()
Returns the color of this filter. |
java.lang.String |
getDisplayName()
Returns a display name for this element. |
java.lang.String |
getModel()
Returns the model of this filter. |
java.lang.String |
getSchott()
Returns the schott value of this filter. |
java.lang.String |
getType()
Returns the filter type. |
java.lang.String |
getWratten()
Returns the wratten value of this filter. |
void |
setColor(java.lang.String color)
Sets the color of this filter. |
void |
setModel(java.lang.String model)
Sets the model name for the filter. |
void |
setSchott(java.lang.String schott)
Sets the schott value for the filter. |
void |
setType(java.lang.String type)
Sets the filter type. |
void |
setWratten(java.lang.String wratten)
Sets the wratten value for the filter. |
java.lang.String |
toString()
Overwrittes toString() method from java.lang.Object. |
| Methods inherited from class de.lehmannet.om.SchemaElement |
|---|
equals, getID, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface de.lehmannet.om.ISchemaElement |
|---|
getID |
| Constructor Detail |
|---|
public Filter(org.w3c.dom.Node filter)
throws SchemaException,
java.lang.IllegalArgumentException
filter - The XML Schema element that represents this filter
java.lang.IllegalArgumentException - if parameter is null,
SchemaException - if the given Node does not match the XML Schema
specifications
public Filter(java.lang.String model,
java.lang.String type)
throws java.lang.IllegalArgumentException
model - The filter model nametype - The type of the filter (use IFilter constants)
java.lang.IllegalArgumentException - if model is empty null or
type is empty, null or does not represent a type value
from IFilter.| Method Detail |
|---|
public java.lang.String toString()
Filter Model: Meade Narrowband
Type: narrow band
toString in class java.lang.ObjectObjectpublic java.lang.String getDisplayName()
getDisplayName in interface ISchemaElementgetDisplayName in class SchemaElementjava.lang.Object.toString();public org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
addToXmlElement in interface IFilterparent - The parent element for this Filter
null if parent was null.Elementpublic org.w3c.dom.Element addAsLinkToXmlElement(org.w3c.dom.Element element)
addAsLinkToXmlElement in interface IFilterelement - The element under which the the filter link is created
null if element was null.Elementpublic java.lang.String getColor()
getColor in interface IFilternull
if the color was never set (e.g. filter type is not IFilter.FILTER_TYPE_COLOR).
public void setColor(java.lang.String color)
throws java.lang.IllegalArgumentException
setColor in interface IFiltercolor - The new color of the filter.
java.lang.IllegalArgumentException - if filter type is not IFilter.FILTER_TYPE_COLOR,
or the given color is empty null or does not contain a valid value.IFilterpublic java.lang.String getModel()
getModel in interface IFilterpublic void setModel(java.lang.String model)
setModel in interface IFiltermodel - The new model name to be set.
java.lang.IllegalArgumentException - if modelname was nullpublic java.lang.String getSchott()
getSchott in interface IFilternull if the value was never set.public void setSchott(java.lang.String schott)
setSchott in interface IFilterschott - The new schott value to be set.public java.lang.String getType()
getType in interface IFilterpublic void setType(java.lang.String type)
null.
setType in interface IFiltertype - The new filter type to be set.
java.lang.IllegalArgumentException - if type was empty, null
or does not contain a valid value (see IFilter constants).IFilterpublic java.lang.String getWratten()
getWratten in interface IFilternull if the value was never set.public void setWratten(java.lang.String wratten)
setWratten in interface IFilterschott - The new wratten value to be set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||