help.de.smartics.properties.core
Class PropertyKeyBuilder

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

public final class PropertyKeyBuilder
     
     
extends Object

Builds instances of PropertyKeys for tests.


Field Summary
static String DEFAULT_FULL_NAME
          The full name including property set and name.
static String DEFAULT_NAME
          A default name for tests.
static String DEFAULT_PROPERTY_SET
          A default property set for tests.
 
Method Summary
static PropertyKeyBuilder a()
          Creates a builder filled with default values.
 PropertyKey build()
          Creates the instance.
 PropertyKeyBuilder but()
          Clones the builder.
static PropertyKey defaultPropertyKey()
          Creates a default instance filled with default values.
 PropertyKeyBuilder withName(String name)
          Returns the name of the property.
 PropertyKeyBuilder withPropertySet(String propertySet)
          Sets the name of the set the property belongs to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROPERTY_SET

public static final String DEFAULT_PROPERTY_SET
A default property set for tests.

Constant Field Value:
"test.property.set"

DEFAULT_NAME

public static final String DEFAULT_NAME
A default name for tests.

Constant Field Value:
"testName"

DEFAULT_FULL_NAME

public static final String DEFAULT_FULL_NAME
The full name including property set and name.

Constant Field Value:
"test.property.set.testName"
Method Detail

withPropertySet

public PropertyKeyBuilder withPropertySet(String propertySet)
Sets the name of the set the property belongs to.

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

withName

public PropertyKeyBuilder withName(String name)
Returns the name of the property.

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

defaultPropertyKey

public static PropertyKey defaultPropertyKey()
Creates a default instance filled with default values.

Returns:
an instance filled with default values.
See Also:
DEFAULT_PROPERTY_SET, DEFAULT_NAME

a

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

Returns:
a builder filled with default values.
See Also:
DEFAULT_PROPERTY_SET, DEFAULT_NAME

but

public PropertyKeyBuilder but()
Clones the builder.

Returns:
the cloned builder.

build

public PropertyKey build()
Creates the instance.

Returns:
the instance.


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