|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.core.metadata.PropertyMetaData.Builder
public static final class PropertyMetaData.Builder
Creates instances of type PropertyMetaData
.
Constructor Summary | |
---|---|
PropertyMetaData.Builder() |
Method Summary | |
---|---|
void |
add(PropertyConstraint<?> constraint) Adds the given constraint to the list of constraints. |
PropertyMetaData |
build() Creates the instance. |
PropertyKey |
getKey() Returns the key of the property. |
PropertyType |
getType() Returns the type of the property value. |
void |
setSecured(boolean secured) Sets the flag to determine whether or not the property value contains sensitive information that is required to be secured. |
PropertyMetaData.Builder |
with(AccessType accessType) Sets the flag to define the access type. |
PropertyMetaData.Builder |
with(DocumentMetaDataProxy documentMetaData) Sets the meta data information for the property. |
PropertyMetaData.Builder |
with(PropertyCategories categories) Sets the categories the property is associated with. |
PropertyMetaData.Builder |
with(PropertyCommentProvider commentProxy) Sets the comment proxy to the property and its values. |
PropertyMetaData.Builder |
with(PropertyContextProvider context) Sets the context of the property descriptor. |
PropertyMetaData.Builder |
with(PropertyDefinitionTime configurationTime) Sets the designed time the property is defined. |
PropertyMetaData.Builder |
with(PropertyExpression defaultExpression) Sets the default expression to evaluate a default property value. |
PropertyMetaData.Builder |
with(PropertyKey key) Sets the key of the property. |
PropertyMetaData.Builder |
with(PropertyType type) Sets the type of the property value. |
PropertyMetaData.Builder |
with(PropertyUse.UseType useType) Sets the use type of the property. |
PropertyMetaData.Builder |
with(PropertyValueRange<?> valueRange) Sets the range of values allowed for this property. |
PropertyMetaData.Builder |
withDeclaringType(Class<?> declaringType) Sets the type that declares the property that is described by this instance. |
PropertyMetaData.Builder |
withUpdateIntervalInMs(long updateIntervalInMs) Sets the update interval in milliseconds (ms). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyMetaData.Builder()
Method Detail |
---|
public PropertyKey getKey()
null
if not yet set to the builder.
public PropertyType getType()
null
if not yet set to the builder.
public PropertyMetaData.Builder with(PropertyContextProvider context) throws NullPointerException
context
- the context of the property descriptor.
NullPointerException
- if
context
is
null
.
public void setSecured(boolean secured)
secured
- the flag to determine whether or not the property value contains sensitive information that is required to be secured.
public PropertyMetaData.Builder withDeclaringType(Class<?> declaringType) throws NullPointerException
declaringType
- the type that declares the property that is described by this instance.
NullPointerException
- if
declaringType
is
null
.
public PropertyMetaData.Builder with(PropertyKey key) throws NullPointerException
null
.
key
- the key of the property.
NullPointerException
- if
key
is
null
.
public PropertyMetaData.Builder with(PropertyType type) throws NullPointerException
null
.
type
- the type of the property value.
NullPointerException
- if
type
is
null
.
public PropertyMetaData.Builder with(AccessType accessType) throws NullPointerException
accessType
- the flag to define the access type.
NullPointerException
- if
accessType
is
null
.
public PropertyMetaData.Builder withUpdateIntervalInMs(long updateIntervalInMs)
An application may cache the value of the property for the given period of time.
value | description |
---|---|
< 0 | Property is not mutable. |
0 | Property is required on each access. |
> 0 | Property is required to be read new after the given number of ms elapsed. |
updateIntervalInMs
- the update interval in milliseconds (ms).
public PropertyMetaData.Builder with(PropertyDefinitionTime configurationTime) throws NullPointerException
configurationTime
- the designed time the property is defined.
NullPointerException
- if
defaultExpression
is
null
.
public PropertyMetaData.Builder with(PropertyExpression defaultExpression) throws NullPointerException
null
.
defaultExpression
- the default expression to evaluate a default property value.
NullPointerException
- if
defaultExpression
is
null
.
public PropertyMetaData.Builder with(PropertyValueRange<?> valueRange)
valueRange
- the range of values allowed for this property.
public PropertyMetaData.Builder with(DocumentMetaDataProxy documentMetaData) throws NullPointerException
documentMetaData
- the meta data information for the property.
NullPointerException
- if
documentMetaData
is
null
.
public PropertyMetaData.Builder with(PropertyCommentProvider commentProxy) throws NullPointerException
commentProxy
- the comment proxy to the property and its values.
NullPointerException
- if
commentProxy
is
null
.
public void add(PropertyConstraint<?> constraint) throws NullPointerException
constraint
- the constraint to add.
NullPointerException
- if
constraint
is
null
.
public PropertyMetaData.Builder with(PropertyCategories categories) throws NullPointerException
categories
- the categories the property is associated with.
NullPointerException
- if
categories
is
null
.
public PropertyMetaData.Builder with(PropertyUse.UseType useType) throws NullPointerException
useType
- the use type of the property.
NullPointerException
- if
useType
is
null
.
public PropertyMetaData build() throws NullPointerException
NullPointerException
- if any of the required arguments is not set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |