|
||||||||||
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
public final class PropertyMetaData
An implementation of the property descriptor interface that allows to set property meta data.
Nested Class Summary | |
---|---|
static class |
PropertyMetaData.Builder Creates instances of type PropertyMetaData . |
Method Summary | |
---|---|
AccessType |
getAccessType() Returns the flag to define the access type. |
PropertyCategories |
getCategories() Returns the categories this property is associated with. |
PropertyComment |
getComment() Returns the comment to the property and its values. |
PropertyComment |
getComment(Locale locale) Returns the comment to the property and its values. |
PropertyDefinitionTime |
getConfigurationTime() The designed time the property is defined. |
List<? extends PropertyConstraint<?>> |
getConstraints() Returns a list of constraints a value for the property has to meet. |
PropertyContext |
getContext() Returns the context of the property descriptor. |
Class<?> |
getDeclaringType() Returns the type that declares the property that is described by this instance. |
PropertyExpression |
getDefaultExpression() Returns the expression to use to construct the value of the property. |
PropertyProjectdoc |
getDocumentMetaData() Returns the meta data information for the property. |
PropertyProjectdoc |
getDocumentMetaData(Locale locale) Returns the meta data information for the property. |
PropertySetProjectdoc |
getDocumentMetaDataProjectSet() Returns the meta data information for the property set. |
PropertySetProjectdoc |
getDocumentMetaDataProjectSet(Locale locale) Returns the meta data information for the property set. |
DocumentName |
getDocumentName() Returns the name of the document that identifies the document uniquely within the context of the project. |
PropertyKey |
getKey() Returns the key of the property. |
PropertyType |
getType() Returns the type of the property value. |
long |
getUpdateIntervalInMs() Returns the update interval in milliseconds (ms). |
PropertyUse.UseType |
getUseType() Returns the use type of the property. |
PropertyValueRange<?> |
getValueRange() Returns the range of values allowed for this property. |
boolean |
isMandatory() Checks if the property is mandatory to be not null . |
boolean |
isRuntimeMutable() Checks whether or not the property is mutable at runtime. |
boolean |
isSecured() Returns the flag to determine whether or not the property value contains sensitive information that is required to be secured. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public PropertyContext getContext()
PropertyDescriptor
getContext
in interface
PropertyDescriptor
public Class<?> getDeclaringType()
PropertyDescriptor
getDeclaringType
in interface
PropertyDescriptor
public PropertyKey getKey()
PropertyDescriptor
This value must not be null
.
getKey
in interface
PropertyDescriptor
public PropertyType getType()
PropertyDescriptor
This value must not be null
.
If there is no value range specified for the property type, the type is either required to specify a static fromString method or is a standard or registered type whose conversion rules are well known.
public static T fromString(String value);
getType
in interface
PropertyDescriptor
public boolean isMandatory()
PropertyDescriptor
null
. If the property is not mandatory, it is optional.
isMandatory
in interface
PropertyDescriptor
true
if the property is mandatory to be not
null
,
false
otherwise.
public boolean isSecured()
isSecured
in interface
PropertyDescriptor
public AccessType getAccessType()
PropertyDescriptor
getAccessType
in interface
PropertyDescriptor
public boolean isRuntimeMutable()
PropertyDescriptor
isRuntimeMutable
in interface
PropertyDescriptor
true
if the property may be changed after startup,
false
if the property value is immutable (that is: stays the same) after startup.
PropertyDescriptor.getUpdateIntervalInMs()
public long getUpdateIntervalInMs()
PropertyDescriptor
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 read on each access. |
> 0 | Property is required to be read new after the given number of ms elapsed. In the meantime a previously read cached value is returned. |
The constants defined in PropertyLifecycle.UpdateInterval
provide constants to define intervals.
getUpdateIntervalInMs
in interface
PropertyDescriptor
public PropertyDefinitionTime getConfigurationTime()
PropertyDescriptor
This value must not be null
.
getConfigurationTime
in interface
PropertyDescriptor
public PropertyExpression getDefaultExpression()
PropertyDescriptor
Resolving fails if at least one property reference cannot be resolved.
Example:
$ server
getDefaultExpression
in interface
PropertyDescriptor
null
.
public PropertyValueRange<?> getValueRange()
PropertyDescriptor
The returned value may be null
if there is no specific range of values the value of the property has to be part of. For instance a property may have no value range or only value ranges that are not enumerable. The latter may only be modeled by a property constraint.
getValueRange
in interface
PropertyDescriptor
null
.
public List<? extends PropertyConstraint<?>> getConstraints()
PropertyDescriptor
getConstraints
in interface
PropertyDescriptor
null
.
public DocumentName getDocumentName()
PropertyDescriptor
META-INF
folder.
getDocumentName
in interface
PropertyDescriptor
public PropertyProjectdoc getDocumentMetaData()
PropertyDescriptor
This value must not be null
.
getDocumentMetaData
in interface
PropertyDescriptor
public PropertyProjectdoc getDocumentMetaData(Locale locale)
PropertyDescriptor
This value must not be null
.
getDocumentMetaData
in interface
PropertyDescriptor
locale
- the locale to determine which bundle to use.
public PropertySetProjectdoc getDocumentMetaDataProjectSet()
PropertyDescriptor
This value must not be null
.
getDocumentMetaDataProjectSet
in interface
PropertyDescriptor
public PropertySetProjectdoc getDocumentMetaDataProjectSet(Locale locale)
PropertyDescriptor
This value must not be null
.
getDocumentMetaDataProjectSet
in interface
PropertyDescriptor
locale
- the locale to determine which bundle to use.
public PropertyComment getComment()
PropertyDescriptor
This value must not be null
.
getComment
in interface
PropertyDescriptor
public PropertyComment getComment(Locale locale)
PropertyDescriptor
This value must not be null
.
getComment
in interface
PropertyDescriptor
locale
- the locale to determine which bundle to use.
public PropertyCategories getCategories()
PropertyDescriptor
getCategories
in interface
PropertyDescriptor
public PropertyUse.UseType getUseType()
getUseType
in interface
PropertyDescriptor
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |