|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the property value.
public interface PropertyValueRange<T>
Defines the possible values for a property.
Method Summary | |
---|---|
T |
fromString(String valueAsString) Constructs a value of the real type T from the given string representation of a value of the range. |
List<T> |
getValues() Returns the list of values provided by the property range. |
boolean |
isCommented() Checks whether or not the values have comments. |
String |
toString() Returns the list of possible values or any form to show the the range of values to select from using the default locale. |
String |
toString(Locale locale) Returns the list of possible values or any form to show the the range of values to select from. |
Method Detail |
---|
List<T> getValues()
toString()
returns information about the values that should be rendered instead.
Example:
For instance, if the range is restricted to prime numbers, this method returns the empty list and the <A HREF="../../../../../../de/smartics/properties/api/core/domain/PropertyValueRange.html#toString()"><CODE>toString()</CODE></A> method returns the descriptive text "Only prime numbers are allowed as values for this property.".
boolean isCommented()
true
if the values have comments,
false
if the values have no comments.
T fromString(String valueAsString) throws IllegalArgumentException
T
from the given string representation of a value of the range.
valueAsString
- the string representation of the value.
T
.
IllegalArgumentException
- if the given string argument cannot be parsed and is therefore illegal to construct an instance of type
<T>
.
String toString(Locale locale)
locale
- the locale to use for formatting.
String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |