help.de.smartics.properties.core
Class PropertyDescriptorBuilder

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

public final class PropertyDescriptorBuilder
     
     
extends Object

Builds instances of PropertyDescriptor for tests.


Field Summary
static Class<?> DEFAULT_DECLARING_TYPE
           
static int DEFAULT_UPDATE_INTERVAL
           
static PropertyContextProvider MISSING_CONTEXT
           
static PropertyCommentProvider NO_PROPERTY_COMMENT
           
static PropertyValueRange<?> NO_RANGE
           
static PropertyContextProvider NON_EMPTY_CONTEXT
           
static PropertyCommentProvider WITH_BLANK_COMMENT
           
static PropertyCommentProvider WITH_COMMENT
           
 
Constructor Summary
PropertyDescriptorBuilder()
           
 
Method Summary
static PropertyDescriptorBuilder a()
          Creates a builder filled with default values.
 PropertyDescriptorBuilder add(PropertyConstraint<?> constraint)
           
 PropertyDescriptor build()
           
static PropertyDescriptor defaultPropertyDescriptor()
          Creates a default instance filled with default values.
 String toString()
           
 PropertyDescriptorBuilder with(de.smartics.properties.api.core.annotations.AccessType accessType)
           
 PropertyDescriptorBuilder with(DocumentMetaDataProxy documentMetaData)
           
 PropertyDescriptorBuilder with(PropertyCommentProvider comment)
           
 PropertyDescriptorBuilder with(PropertyContextProvider context)
           
 PropertyDescriptorBuilder with(de.smartics.properties.api.core.annotations.PropertyDefinitionTime configurationTime)
           
 PropertyDescriptorBuilder with(PropertyExpression defaultExpression)
           
 PropertyDescriptorBuilder with(PropertyKey key)
           
 PropertyDescriptorBuilder with(PropertyType type)
           
 PropertyDescriptorBuilder with(PropertyValueRange<?> valueRange)
           
 PropertyDescriptorBuilder withDeclaringType(Class<?> declaringType)
           
 PropertyDescriptorBuilder withUpdateIntervalInMs(long updateIntervalInMs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MISSING_CONTEXT

public static final PropertyContextProvider MISSING_CONTEXT

NON_EMPTY_CONTEXT

public static final PropertyContextProvider NON_EMPTY_CONTEXT

DEFAULT_DECLARING_TYPE

public static final Class<?> DEFAULT_DECLARING_TYPE

DEFAULT_UPDATE_INTERVAL

public static final int DEFAULT_UPDATE_INTERVAL
Constant Field Value:
4200

NO_RANGE

public static final PropertyValueRange<?> NO_RANGE

NO_PROPERTY_COMMENT

public static final PropertyCommentProvider NO_PROPERTY_COMMENT

WITH_COMMENT

public static final PropertyCommentProvider WITH_COMMENT

WITH_BLANK_COMMENT

public static final PropertyCommentProvider WITH_BLANK_COMMENT
Constructor Detail

PropertyDescriptorBuilder

public PropertyDescriptorBuilder()
Method Detail

defaultPropertyDescriptor

public static PropertyDescriptor defaultPropertyDescriptor()
Creates a default instance filled with default values.

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

a

public static PropertyDescriptorBuilder a()
Creates a builder filled with default values. No constraints are set to the property. For details on the set meta data, see references below.

Returns:
a builder filled with default values.
See Also:
MISSING_CONTEXT, PropertyKeyBuilder.defaultPropertyKey(), DEFAULT_DECLARING_TYPE, PropertyTypeBuilder.defaultPropertyType(), AccessType.READ_WRITE, DEFAULT_UPDATE_INTERVAL, PropertyDefinitionTime.RUN, PropertyExpression.NO_EXPRESSION, NO_RANGE, NO_PROPERTY_COMMENT

build

public PropertyDescriptor build()
                         throws NullPointerException
Throws:
NullPointerException

with

public PropertyDescriptorBuilder with(PropertyContextProvider context)
                               throws NullPointerException
Throws:
NullPointerException

with

public PropertyDescriptorBuilder with(PropertyKey key)
                               throws NullPointerException
Throws:
NullPointerException

withDeclaringType

public PropertyDescriptorBuilder withDeclaringType(Class<?> declaringType)
                                            throws NullPointerException
Throws:
NullPointerException

with

public PropertyDescriptorBuilder with(PropertyType type)
                               throws NullPointerException
Throws:
NullPointerException

with

public PropertyDescriptorBuilder with(de.smartics.properties.api.core.annotations.AccessType accessType)
                               throws NullPointerException
Throws:
NullPointerException

withUpdateIntervalInMs

public PropertyDescriptorBuilder withUpdateIntervalInMs(long updateIntervalInMs)

with

public PropertyDescriptorBuilder with(de.smartics.properties.api.core.annotations.PropertyDefinitionTime configurationTime)
                               throws NullPointerException
Throws:
NullPointerException

with

public PropertyDescriptorBuilder with(PropertyExpression defaultExpression)
                               throws NullPointerException
Throws:
NullPointerException

with

public PropertyDescriptorBuilder with(PropertyValueRange<?> valueRange)

with

public PropertyDescriptorBuilder with(DocumentMetaDataProxy documentMetaData)
                               throws NullPointerException
Throws:
NullPointerException

with

public PropertyDescriptorBuilder with(PropertyCommentProvider comment)
                               throws NullPointerException
Throws:
NullPointerException

add

public PropertyDescriptorBuilder add(PropertyConstraint<?> constraint)
                              throws NullPointerException
Throws:
NullPointerException

toString

public String toString()
Overrides:
toString in class Object


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