|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biomage.Common.Extendable
org.biomage.Measurement.Measurement
public class Measurement
A Measurement is a quantity with a unit.
Nested Class Summary | |
---|---|
class |
Measurement.KindCV
Inner class for the enumeration values that the attribute kindCV can assume. |
class |
Measurement.Type
Inner class for the enumeration values that the attribute type can assume. |
Nested classes/interfaces inherited from interface org.biomage.Interface.HasPropertySets |
---|
HasPropertySets.PropertySets_list |
Field Summary | |
---|---|
protected Unit |
unit
The Unit associated with the Measurement. |
Fields inherited from class org.biomage.Common.Extendable |
---|
editable, id, securedElementId |
Constructor Summary | |
---|---|
Measurement()
Default constructor. |
|
Measurement(org.xml.sax.Attributes atts)
Attribute constructor. |
Method Summary | |
---|---|
boolean |
emptyMAGEobject()
|
Measurement.KindCV |
getKindCV()
Get method for kindCV |
java.lang.String |
getModelClassName()
|
java.lang.String |
getNameByValueKindCV(int val)
For KindCV get the Name of the Enumeration type by passing a Value to it. |
java.lang.String |
getNameByValueType(int val)
For Type get the Name of the Enumeration type by passing a Value to it. |
java.lang.String |
getNameKindCV()
Return the current name of the Enumeration type of KindCV. |
java.lang.String |
getNameType()
Return the current name of the Enumeration type of Type. |
java.lang.String |
getOtherKind()
Get method for otherKind |
Measurement.Type |
getType()
Get method for type |
Unit |
getUnit()
Get method for unit |
java.lang.Object |
getValue()
Get method for value |
int |
getValueByNameKindCV(java.lang.String name)
For KindCV get the Value of the Enumeration type by passing a Name to it. |
int |
getValueByNameType(java.lang.String name)
For Type get the Value of the Enumeration type by passing a Name to it. |
int |
getValueKindCV()
Return the currrent value of the Enumeration type of KindCV. |
int |
getValueType()
Return the currrent value of the Enumeration type of Type. |
void |
setKindCV(Measurement.KindCV kindCV)
Set method for kindCV |
java.lang.String |
setNameByValueKindCV(int val)
For KindCV set the Name of the Enumeration type by passing a value (int) |
java.lang.String |
setNameByValueType(int val)
For Type set the Name of the Enumeration type by passing a value (int) |
void |
setOtherKind(java.lang.String otherKind)
Set method for otherKind |
void |
setType(Measurement.Type type)
Set method for type |
void |
setUnit(Unit unit)
Set method for unit |
void |
setValue(java.lang.Object value)
Set method for value |
int |
setValueByNameKindCV(java.lang.String name)
For KindCV set the Value of the Enumeration type by passing a Name to it. |
int |
setValueByNameType(java.lang.String name)
For Type set the Value of the Enumeration type by passing a Name to it. |
void |
writeAssociations(java.io.Writer out)
writeAssociations This method is responsible for assembling the association data into XML. |
void |
writeAttributes(java.io.Writer out)
writeAttributes This method is responsible for assembling the attribute data into XML. |
void |
writeMAGEML(java.io.Writer out)
writeMAGEML This method is responsible for assembling the attribute and association data into XML. |
Methods inherited from class org.biomage.Common.Extendable |
---|
addToPropertySets, addToPropertySets, equals, getFromPropertySets, getId, getIsEditable, getPropertySets, getSecuredElementId, isEditable, removeElementAtFromPropertySets, removeFromPropertySets, setAttributes, setId, setIsEditable, setPropertySets, setSecuredElementId, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Unit unit
Constructor Detail |
---|
public Measurement()
public Measurement(org.xml.sax.Attributes atts)
atts:
- the attribute list.Method Detail |
---|
public void writeMAGEML(java.io.Writer out) throws java.io.IOException
writeMAGEML
in class Extendable
java.io.IOException
public boolean emptyMAGEobject()
public void writeAttributes(java.io.Writer out) throws java.io.IOException
writeAttributes
in class Extendable
java.io.IOException
public void writeAssociations(java.io.Writer out) throws java.io.IOException
writeAssociations
in class Extendable
java.io.IOException
public void setType(Measurement.Type type)
value
- to setpublic Measurement.Type getType()
public java.lang.String setNameByValueType(int val)
int
- value The value to be mapped to the namepublic int setValueByNameType(java.lang.String name)
String
- name The name to be mapped to a valuepublic java.lang.String getNameByValueType(int val)
int
- val The value for which the Mapped String will be returned.public int getValueByNameType(java.lang.String name)
String
- name The name to be mapped to a value.public java.lang.String getNameType()
public int getValueType()
public void setValue(java.lang.Object value)
value
- to setpublic java.lang.Object getValue()
public void setKindCV(Measurement.KindCV kindCV)
value
- to setpublic Measurement.KindCV getKindCV()
public java.lang.String setNameByValueKindCV(int val)
int
- value The value to be mapped to the namepublic int setValueByNameKindCV(java.lang.String name)
String
- name The name to be mapped to a valuepublic java.lang.String getNameByValueKindCV(int val)
int
- val The value for which the Mapped String will be returned.public int getValueByNameKindCV(java.lang.String name)
String
- name The name to be mapped to a value.public java.lang.String getNameKindCV()
public int getValueKindCV()
public void setOtherKind(java.lang.String otherKind)
value
- to setpublic java.lang.String getOtherKind()
public java.lang.String getModelClassName()
getModelClassName
in class Extendable
public void setUnit(Unit unit)
setUnit
in interface HasUnit
value
- to setpublic Unit getUnit()
getUnit
in interface HasUnit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |