|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ILens
An ILens describes a lens used to extend or reduce a focal length. Implementations of ILens can be Barlow lenses or Shapley lenses depending on the given factor. The model name and the factor are mandatory fields which have to be set.
| Field Summary | |
|---|---|
static java.lang.String |
XML_ELEMENT_FACTOR
Constant for XML representation: factor element name Example: <lens> More stuff goes here <factor> lens focal length factor goes here</factor>
More stuff goes here
</lens> |
static java.lang.String |
XML_ELEMENT_LENS
Constant for XML representation: lens element name |
static java.lang.String |
XML_ELEMENT_MODEL
Constant for XML representation: model element name Example: <lens> More stuff goes here <model> Model name goes here</model>
More stuff goes here
</lens> |
static java.lang.String |
XML_ELEMENT_VENDOR
Constant for XML representation: vendor element name Example: <lens> More stuff goes here <vendor> Vendor name goes here</vendor>
More stuff goes here
</lens> |
| Fields inherited from interface de.lehmannet.om.ISchemaElement |
|---|
XML_ELEMENT_ATTRIBUTE_ID |
| Method Summary | |
|---|---|
org.w3c.dom.Element |
addAsLinkToXmlElement(org.w3c.dom.Element parent)
Adds the lens link to an given XML DOM Element The lens element itself will be attached to given elements ownerDocument. |
org.w3c.dom.Element |
addToXmlElement(org.w3c.dom.Element element)
Adds this Lens to a given parent XML DOM Element. |
float |
getFactor()
Returns the focal length factor of this lens. |
java.lang.String |
getModel()
Returns the model name of the lens. |
java.lang.String |
getVendor()
Returns the vendor name of the lens. |
void |
setFactor(float factor)
Sets the focal length factor of the lens. |
void |
setModel(java.lang.String modelname)
Sets the model name for the lens. |
void |
setVendor(java.lang.String vendorname)
Sets the vendor name of the lens. |
| Methods inherited from interface de.lehmannet.om.ISchemaElement |
|---|
getDisplayName, getID |
| Field Detail |
|---|
static final java.lang.String XML_ELEMENT_LENS
static final java.lang.String XML_ELEMENT_MODEL
Model name goes here</model>
More stuff goes here
</lens>
static final java.lang.String XML_ELEMENT_VENDOR
Vendor name goes here</vendor>
More stuff goes here
</lens>
static final java.lang.String XML_ELEMENT_FACTOR
lens focal length factor goes here</factor>
More stuff goes here
</lens>
| Method Detail |
|---|
org.w3c.dom.Element addToXmlElement(org.w3c.dom.Element element)
parent - The parent element for this Lens
null if parent was null.Elementorg.w3c.dom.Element addAsLinkToXmlElement(org.w3c.dom.Element parent)
parent - The element under which the the lens link is created
null if element was null.Elementfloat getFactor()
java.lang.String getModel()
java.lang.String getVendor()
null is returned the vendor name was never set.void setFactor(float factor)
factor - The new focal length factor to be set.void setModel(java.lang.String modelname)
modelname - The new model name to be set.void setVendor(java.lang.String vendorname)
vendorname - The new vendor name to be set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||