Package com.evolveum.midpoint.prism.impl
Class DisplayableValueImpl<T>
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.DisplayableValueImpl<T>
-
- All Implemented Interfaces:
DisplayableValue<T>
,Serializable
public class DisplayableValueImpl<T> extends Object implements DisplayableValue<T>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DisplayableValueImpl(T value, String label, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getDescription()
Returns longer description that can be used as a help text, tooltip or for similar purpose.String
getLabel()
Returns short user-friendly label.T
getValue()
Retuns actual value.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getValue
public T getValue()
Description copied from interface:DisplayableValue
Retuns actual value. This may not be user-friendly.- Specified by:
getValue
in interfaceDisplayableValue<T>
-
getLabel
public String getLabel()
Description copied from interface:DisplayableValue
Returns short user-friendly label. Catalog key may be returned instead of actual text.- Specified by:
getLabel
in interfaceDisplayableValue<T>
-
getDescription
public String getDescription()
Description copied from interface:DisplayableValue
Returns longer description that can be used as a help text, tooltip or for similar purpose. Catalog key may be returned instead of actual text.- Specified by:
getDescription
in interfaceDisplayableValue<T>
-
-