|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.core.domain.PropertyValueComment
public final class PropertyValueComment
Provides comments for the values of a property.
Constructor Summary | |
---|---|
PropertyValueComment(String summary) Default constructor. |
Method Summary | |
---|---|
void |
addValueComment(Object value, String comment) Adds the comment for the given value. |
String |
getSummary() Returns the summary of the type of the values. |
String |
getValueComment(Object value) Returns the comment for the given value. |
List<Serializable> |
getValues() Returns the list of values the instance provides comments for. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyValueComment(String summary)
summary
- the summary of the type of the values.
Method Detail |
---|
public String getSummary()
null
.
public void addValueComment(Object value, String comment)
value
- the value whose comment is to be added. If the value is not serializable, the string representation will be stored.
comment
- the comment to the value.
public String getValueComment(Object value)
value
- the value whose comment is requested.
null
if there is no comment for taht value.
public List<Serializable> getValues()
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |