|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object help.de.smartics.properties.core.PropertyValueCommentBuilder
public final class PropertyValueCommentBuilder
Builds instances of PropertyValueComment
s for tests.
Field Summary | |
---|---|
static String |
DEFAULT_SUMMARY |
static String |
DEFAULT_VALUE |
static String |
DEFAULT_VALUE_COMMENT |
Method Summary | |
---|---|
static PropertyValueCommentBuilder |
a() Creates a builder filled with default values. |
PropertyValueCommentBuilder |
addValueComment(Serializable value, String comment) Adds the comment for the given value. |
PropertyValueComment |
build() Creates the instance. |
PropertyValueCommentBuilder |
but() Clones the builder. |
static PropertyValueComment |
defaultValueComment() Creates a default instance filled with default values. |
static PropertyValueCommentBuilder |
from(PropertyValueComment instance) Creates a builder from the instance. |
PropertyValueCommentBuilder |
withSummary(String summary) Sets the summary of the type of the values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_SUMMARY
"Default summary comment."
public static final String DEFAULT_VALUE
"value"
public static final String DEFAULT_VALUE_COMMENT
"Comment to the value."
Method Detail |
---|
public PropertyValueCommentBuilder withSummary(String summary)
null
.
propertySet
- the summary of the type of the values. May be
null
.
public PropertyValueCommentBuilder addValueComment(Serializable value, String comment)
value
- the value whose comment is to be added.
comment
- the comment to the value.
public static PropertyValueComment defaultValueComment()
a()
public static PropertyValueCommentBuilder a()
DEFAULT_SUMMARY
,
DEFAULT_VALUE
,
DEFAULT_VALUE_COMMENT
public PropertyValueCommentBuilder but()
public static PropertyValueCommentBuilder from(PropertyValueComment instance)
instance
- the instance to fill the builder.
instance
.
public PropertyValueComment build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |