de.cau.cs.kieler.core.properties
Interface IProperty<T>

Type Parameters:
T - type of the property
All Known Implementing Classes:
CombinationParameter, ExporterOption, ImporterOption, LayoutOptionData, Property

public interface IProperty<T>

Interface for property identifiers. Properties have a type and a default value, and they have an internal mechanism for identification, which should be compatible with their Object.equals(Object) and Object.hashCode() implementations.

Rating yellow
(2011-01-17) reviewed by haf, cmot, soh

Method Summary
 T getDefault()
          Returns the default value of this property.
 String getId()
          Returns an identifier string for this property.
 Comparable<T> getLowerBound()
          Returns the lower bound of this property.
 Comparable<T> getUpperBound()
          Returns the upper bound of this property.
 

Method Detail

getDefault

T getDefault()
Returns the default value of this property.

Returns:
the default value, or null if the property has no default value

getLowerBound

Comparable<T> getLowerBound()
Returns the lower bound of this property. If there is no lower bound, a comparable is returned that is smaller than everything else.

Returns:
the lower bound

getUpperBound

Comparable<T> getUpperBound()
Returns the upper bound of this property. If there is no upper bound, a comparable is returned that is greater than everything else.

Returns:
the upper bound

getId

String getId()
Returns an identifier string for this property.

Returns:
an identifier