help.de.smartics.properties.core
Class PropertyCommentBuilder

Package class diagram package PropertyCommentBuilder
java.lang.Object
  extended by help.de.smartics.properties.core.PropertyCommentBuilder

public final class PropertyCommentBuilder
     
     
extends Object

Builds instances of PropertyComments for tests.


Field Summary
static String DEFAULT_PROPERTY_COMMENT
           
 
Method Summary
static PropertyCommentBuilder a()
          Creates a builder filled with default values.
 PropertyComment build()
          Creates the instance.
 PropertyCommentBuilder but()
          Clones the builder.
static PropertyComment defaultPropertyComment()
          Creates a default instance filled with default values.
 PropertyCommentBuilder with(PropertyValueComment valueComment)
          Returns the name of the property.
 PropertyCommentBuilder withText(String text)
          Sets the text of the comment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROPERTY_COMMENT

public static final String DEFAULT_PROPERTY_COMMENT
Constant Field Value:
"Default property comment."
Method Detail

withText

public PropertyCommentBuilder withText(String text)
Sets the text of the comment.

Parameters:
propertySet - the text of the comment.
Returns:
a reference to this builder.

with

public PropertyCommentBuilder with(PropertyValueComment valueComment)
Returns the name of the property.

Parameters:
name - the name of the property.
Returns:
a reference to this builder.

defaultPropertyComment

public static PropertyComment defaultPropertyComment()
Creates a default instance filled with default values.

Returns:
an instance filled with default values.
See Also:
a()

a

public static PropertyCommentBuilder a()
Creates a builder filled with default values.

Returns:
a builder filled with default values.
See Also:
DEFAULT_PROPERTY_COMMENT, PropertyValueCommentBuilder.defaultValueComment()

but

public PropertyCommentBuilder but()
Clones the builder.

Returns:
the cloned builder.

build

public PropertyComment build()
Creates the instance.

Returns:
the instance.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.