|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyDescriptor
Defines property meta data. This information excludes the actual property value. It provides information such as name, type, default values and constraints on the property value.
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() Checks if the property is secured. |
Method Detail |
---|
PropertyContext getContext()
Class<?> getDeclaringType()
PropertyKey getKey()
This value must not be null
.
PropertyType getType()
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);
boolean isMandatory()
null
. If the property is not mandatory, it is optional.
true
if the property is mandatory to be not
null
,
false
otherwise.
boolean isSecured()
true
if the property is secured,
false
if is readable by anyone.
AccessType getAccessType()
boolean isRuntimeMutable()
true
if the property may be changed after startup,
false
if the property value is immutable (that is: stays the same) after startup.
getUpdateIntervalInMs()
long getUpdateIntervalInMs()
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.
PropertyDefinitionTime getConfigurationTime()
This value must not be null
.
PropertyExpression getDefaultExpression()
Resolving fails if at least one property reference cannot be resolved.
Example:
$ server
null
.
PropertyValueRange<?> getValueRange()
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.
null
.
List<? extends PropertyConstraint<?>> getConstraints()
null
.
DocumentName getDocumentName()
META-INF
folder.
PropertyProjectdoc getDocumentMetaData()
This value must not be null
.
PropertyProjectdoc getDocumentMetaData(Locale locale)
This value must not be null
.
locale
- the locale to determine which bundle to use.
PropertySetProjectdoc getDocumentMetaDataProjectSet()
This value must not be null
.
PropertySetProjectdoc getDocumentMetaDataProjectSet(Locale locale)
This value must not be null
.
locale
- the locale to determine which bundle to use.
PropertyComment getComment()
This value must not be null
.
PropertyComment getComment(Locale locale)
This value must not be null
.
locale
- the locale to determine which bundle to use.
PropertyCategories getCategories()
PropertyUse.UseType getUseType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |