|
|||||||||
| 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.Imager
public abstract class Imager
An Imager describes a camera. This class is an abstract implementation
of org.jscience.ml.om.IImager.
If you need an instance use one of the subclasses.
| Field Summary |
|---|
| Fields inherited from interface org.jscience.ml.om.IImager |
|---|
CCD, FILM, XML_ELEMENT_IMAGER, XML_ELEMENT_MODEL, XML_ELEMENT_REMARKS, XML_ELEMENT_TYPE, XML_ELEMENT_VENDOR |
| Fields inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Constructor Summary | |
|---|---|
|
Imager(org.w3c.dom.Node imager)
Constructs a new instance of an Imager from an given XML Schema Node. |
protected |
Imager(java.lang.String model)
Constructs a new instance of an Imager. |
| Method Summary | |
|---|---|
org.w3c.dom.Element |
addAsLinkToXmlElement(org.w3c.dom.Element parent)
Adds the imager link to an given XML DOM Element The IImager element itself will be attached to given elements ownerDocument. |
abstract org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this IImager to a given parent XML DOM Element. |
protected org.w3c.dom.Element |
createXmlImagerElement(org.w3c.dom.Element parent)
Creates an XML DOM Element for the Imager. |
boolean |
equals(java.lang.Object obj)
Overwrittes equals(Object) method from java.lang.Object. |
java.lang.String |
getDisplayName()
Returns a display name for this element. |
java.lang.String |
getModel()
Returns the model name of this imager. |
java.lang.String |
getRemarks()
Returns the remarks to this imager. |
java.lang.String |
getType()
Returns the type of this imager. |
java.lang.String |
getVendor()
Returns the vendor name of this imager. |
void |
setModel(java.lang.String modelname)
Sets the model name for the imager. |
void |
setRemarks(java.lang.String remarks)
Sets the remarks for this imager. |
void |
setType(java.lang.String type)
Sets the type for this imager. |
void |
setVendor(java.lang.String vendor)
Sets the vendor name for the imager. |
| Methods inherited from class org.jscience.ml.om.SchemaElement |
|---|
getID, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jscience.ml.om.ISchemaElement |
|---|
getID |
| Constructor Detail |
|---|
public Imager(org.w3c.dom.Node imager)
throws SchemaException,
java.lang.IllegalArgumentException
imager - The XML Schema element that represents this imager
java.lang.IllegalArgumentException - if parameter is null,
SchemaException - if the given Node does not match the XML Schema
specifications
protected Imager(java.lang.String model)
throws java.lang.IllegalArgumentException
model - The imager model name
java.lang.IllegalArgumentException - if model is null| Method Detail |
|---|
public java.lang.String getDisplayName()
getDisplayName in interface ISchemaElementgetDisplayName in class SchemaElementjava.lang.Object.toString();public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The Object to compare this Imager with.
true if the given Object is an instance of IImager
and its modelname, vendorname, and type matches with this Imager.Objectpublic abstract org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
addToXmlElement in interface IImagerelement - The parent element for this IImager
null if parent was
null.Elementpublic org.w3c.dom.Element addAsLinkToXmlElement(org.w3c.dom.Element parent)
addAsLinkToXmlElement in interface IImagerparent - The element under which the the imager link is created
null if element was
null.Elementpublic java.lang.String getModel()
getModel in interface IImagerpublic java.lang.String getVendor()
getVendor in interface IImagerNULL if
vendor name was not set.public java.lang.String getType()
getType in interface IImagerNULL if type was not set.public java.lang.String getRemarks()
getRemarks in interface IImagerNULL if no
remarks were set.
public void setModel(java.lang.String modelname)
throws java.lang.IllegalArgumentException
setModel in interface IImagermodelname - The new model name to be set.
java.lang.IllegalArgumentException - if new modelname is null
or empty stringpublic void setVendor(java.lang.String vendor)
setVendor in interface IImagervendor - The new vendor name to be set.public void setType(java.lang.String type)
setType in interface IImagertype - The new image type.
java.lang.IllegalArgumentException - DOCUMENT ME!public void setRemarks(java.lang.String remarks)
setRemarks in interface IImagerremarks - The new remarks.protected org.w3c.dom.Element createXmlImagerElement(org.w3c.dom.Element parent)
parent - The target container element
null if
parent was null.Element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||