help.de.smartics.properties.core
Class PropertyContextBuilder

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

public final class PropertyContextBuilder
     
     
extends Object

Builds instances of PropertyContexts for tests.


Method Summary
static PropertyContextBuilder a()
          Creates a builder filled with default values.
 PropertyContext build()
          Creates the instance.
 PropertyContextBuilder but()
          Clones the builder.
static PropertyContext defaultPropertyContext()
          Creates a default instance filled with default values.
 PropertyContextBuilder with(PropertiesContext propertiesContext)
          Sets the context of the properties.
 PropertyContextBuilder with(PropertyDescriptor descriptor)
          Sets the descriptor of the property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

with

public PropertyContextBuilder with(PropertiesContext propertiesContext)
Sets the context of the properties.

Parameters:
propertiesContext - the context of the properties.
Returns:
a reference to this builder.

with

public PropertyContextBuilder with(PropertyDescriptor descriptor)
Sets the descriptor of the property.

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

defaultPropertyContext

public static PropertyContext defaultPropertyContext()
Creates a default instance filled with default values.

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

a

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

Returns:
a builder filled with default values.
See Also:
PropertiesContextBuilder.defaultPropertiesContext(), PropertyDescriptorBuilder.defaultPropertyDescriptor()

but

public PropertyContextBuilder but()
Clones the builder.

Returns:
the cloned builder.

build

public PropertyContext build()
Creates the instance.

Returns:
the instance.


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