help.de.smartics.properties.core
Class PropertyDescriptorBuilder
java.lang.Object
help.de.smartics.properties.core.PropertyDescriptorBuilder
-
public final class PropertyDescriptorBuilder
-
extends
Object
Builds instances of PropertyDescriptor
for tests.
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
PropertyDescriptorBuilder
public PropertyDescriptorBuilder()
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.