Class PropertyInfo
- java.lang.Object
-
- fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfo
-
- fi.tut.mei.resdescapi.rescatapi.model.PropertyInfo
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CapabilityParameterInfo
public class PropertyInfo extends DescriptionInfo
Data container for a property- Author:
- Niko Siltala
-
-
Constructor Summary
Constructors Constructor Description PropertyInfo()
PropertyInfo(String id, String guid, String name, String desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
boolean
equals(Object obj)
String
getDatatype()
float
getDecade()
float
getIncrement()
String
getUnit()
String
getValueDefault()
float
getValueNum()
float
getValueNum_Max()
float
getValueNum_Min()
String
getValueStr()
int
hashCode()
boolean
isNumeric()
boolean
isString()
void
setDatatype(String datatype)
void
setDecade(float decade)
void
setIncrement(float increment)
void
setUnit(String unit)
void
setValue(String value)
Sets the value of this property.void
setValueDefault(String valueDefault)
void
setValueNum(float valueNum)
void
setValueNum_Max(float valueNum_Max)
void
setValueNum_Min(float valueNum_Min)
void
setValueStr(String valueStr)
String
toString()
-
Methods inherited from class fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfo
getDescription, getGuid, getId, getName, setDescription, setGuid, setId, setName
-
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classDescriptionInfo
- Throws:
CloneNotSupportedException
-
getUnit
public String getUnit()
- Returns:
- the unit
-
setUnit
public void setUnit(String unit)
- Parameters:
unit
- the unit to set
-
getIncrement
public float getIncrement()
- Returns:
- the increment
-
setIncrement
public void setIncrement(float increment)
- Parameters:
increment
- the increment to set
-
getDecade
public float getDecade()
- Returns:
- the decade
-
setDecade
public void setDecade(float decade)
- Parameters:
decade
- the decade to set
-
getValueNum_Min
public float getValueNum_Min()
- Returns:
- the valueNum_Min
-
setValueNum_Min
public void setValueNum_Min(float valueNum_Min)
- Parameters:
valueNum_Min
- the valueNum_Min to set
-
getValueNum_Max
public float getValueNum_Max()
- Returns:
- the valueNum_Max
-
setValueNum_Max
public void setValueNum_Max(float valueNum_Max)
- Parameters:
valueNum_Max
- the valueNum_Max to set
-
getValueNum
public float getValueNum()
- Returns:
- the valueNum
-
setValueNum
public void setValueNum(float valueNum)
- Parameters:
valueNum
- the valueNum to set
-
getValueDefault
public String getValueDefault()
- Returns:
- the valueDefault
-
setValueDefault
public void setValueDefault(String valueDefault)
- Parameters:
valueDefault
- the valueDefault to set
-
setValue
public void setValue(String value)
Sets the value of this property. Stores in numeric form(ValueNum) if it can be formatted numerically. Otherwise it is stored in String format to ValueStr.- Parameters:
value
- Property value stored.
-
getValueStr
public String getValueStr()
- Returns:
- the valueStr
-
setValueStr
public void setValueStr(String valueStr)
- Parameters:
valueStr
- the valueStr to set
-
getDatatype
public String getDatatype()
- Returns:
- the datatype
-
setDatatype
public void setDatatype(String datatype)
- Parameters:
datatype
- the datatype to set
-
isNumeric
public boolean isNumeric()
-
isString
public boolean isString()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDescriptionInfo
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classDescriptionInfo
-
toString
public String toString()
- Overrides:
toString
in classDescriptionInfo
-
-