org.pm4j.core.pm
Interface PmOption

All Known Implementing Classes:
PmOptionImpl

public interface PmOption

An option for an attribute value.

The toString method provides the title of the option.


Method Summary
 java.io.Serializable getId()
           
 java.lang.String getIdAsString()
           
 java.lang.String getPmTitle()
           
<T> T
getValue()
          Provides an optional object behind this option.
 boolean isEnabled()
           
 

Method Detail

getId

java.io.Serializable getId()
Returns:
The identifier of the option to select.

getIdAsString

java.lang.String getIdAsString()
Returns:
The identifier of the option to select as string.

isEnabled

boolean isEnabled()
Returns:
true when the option can be used for setting a value.

getValue

<T> T getValue()
Provides an optional object behind this option.

Options that represent references to other objects can provide here the presentation model of the referenced object.

Other option implementations e.g. for numeric values might provide a number here. Have a look at the concrete option provider documentation for that.

Returns:
The object behind the option or null.

getPmTitle

java.lang.String getPmTitle()
Returns:
The localized title.