Interface PropertyValue
- All Superinterfaces:
Comparable<PropertyValue>,Serializable
- All Known Implementing Classes:
PropertyValueImpl
This class is the value of a property of a model element.
- Version:
- 10.1.1
- Author:
- jmback
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare with other property value.booleanGet boolean value.Get a short value for display usage.intGet integer value.Get a list of points.<T> List<T> getListValue(Class<T> cls) Get list.Get a list of mapping elements.Get generic value.Get a single point.Get string value.booleanIs the value of boolean type.booleanIs the value of integer type.voidSet the property value.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getStringValue
String getStringValue()Get string value.- Returns:
- string value of the property value
-
getBooleanValue
boolean getBooleanValue()Get boolean value.- Returns:
- boolean value of the property value
-
isBooleanValue
boolean isBooleanValue()Is the value of boolean type.- Returns:
- true if property value can be interpreted as a boolean
-
getPointValue
Point getPointValue()Get a single point.- Returns:
- Point
-
getListPointValue
Get a list of points.- Returns:
- List of Points
-
getObjectValue
Object getObjectValue()Get generic value.- Returns:
- object value of the property value
-
getListValue
Get list.- Type Parameters:
T-- Parameters:
cls- Class of list elements- Returns:
- object value of the property value
-
getMappingElementList
MappingElementList getMappingElementList()Get a list of mapping elements.- Returns:
- list of mapping elements
-
getIntegerValue
int getIntegerValue()Get integer value.- Returns:
- integer value of the property value
-
isIntegerValue
boolean isIntegerValue()Is the value of integer type.- Returns:
- true if property value can be interpreted as a integer.
-
setValue
Set the property value.- Parameters:
value- Generic value
-
equals
Compare with other property value.- Parameters:
c- other property value- Returns:
- true, if both property values have the same value.
-
getDisplayValue
String getDisplayValue()Get a short value for display usage. Not necessary showing complete content- Returns:
- short description
-