Interface PropertyDescriptor
-
public interface PropertyDescriptorEncapsulates the metadata about a property of a type in the XL Deploy type system. Example of such metadata: the name and type of the property, information related to UI-rendering etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanareEqual(ConfigurationItem item, ConfigurationItem other)booleanareEqual(ConfigurationItem item, ConfigurationItem other, java.util.function.Function<ConfigurationItem,java.lang.Object> identifierExtractor)java.lang.Objectget(ConfigurationItem item)java.util.Set<java.lang.String>getAliases()java.util.List<java.lang.annotation.Annotation>getAnnotations()java.lang.StringgetCandidateValuesFilter()TheCandidateValuesFilterto apply when selecting values for this CI, SET_OF_CI, LIST_OF_CI propertyjava.lang.StringgetCategory()The UI groups all properties in the same category into a tab of their own.java.lang.ObjectgetDefaultValue()java.lang.StringgetDescription()java.util.List<java.lang.String>getEnumValues()java.lang.StringgetFqn()InputHintgetInputHint()PropertyKindgetKind()java.lang.StringgetLabel()java.lang.StringgetName()TypegetReferencedType()Only relevant for properties of kind CI, SET_OF_CI or LIST_OF_CI.Property.SizegetSize()booleanisAsContainment()Indicates a parent / child relationship (Boolean).booleanisDeployedSpecific()booleanisHidden()Hidden properties don't show up in the UI.booleanisInspectionProperty()booleanisNested()Indicates a child relationship (Boolean).booleanisPassword()Only applicable for String property types.booleanisReadonly()booleanisRequired()booleanisRequiredForInspection()booleanisTransient()voidset(ConfigurationItem item, java.lang.Object value)Set the given value for this property of the givenConfigurationItem.java.lang.StringtoString()
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- The name of the property.
-
getDescription
java.lang.String getDescription()
- Returns:
- Textual description of the property.
-
isAsContainment
boolean isAsContainment()
Indicates a parent / child relationship (Boolean). Only applicable for properties that refer to other CIs.- Returns:
- If asContainment is set to true and the property is of kind CI then we are referring to the parent of this CI. If the kind is LIST_OF_CI or SET_OF_CI, then this CI is the parent and this property refers to its children.
-
isNested
boolean isNested()
Indicates a child relationship (Boolean). Only applicable to properties of kind CI.- Returns:
- If child is set to true and the property is of kind CI then we are referring to the child of this CI.
-
getCategory
java.lang.String getCategory()
The UI groups all properties in the same category into a tab of their own.- Returns:
- The category of this property.
-
getLabel
java.lang.String getLabel()
- Returns:
- Label text for use in the UI.
-
isPassword
boolean isPassword()
Only applicable for String property types. Contents maybe masked with '*' character.- Returns:
- Whether this property is a password.
-
isRequired
boolean isRequired()
- Returns:
- Whether this property is required.
-
getSize
Property.Size getSize()
- Returns:
- The size of the input field in the UI. Possible values: DEFAULT, SMALL, MEDIUM or LARGE.
-
getKind
PropertyKind getKind()
- Returns:
- The
PropertyKind. Possible values: BOOLEAN, INTEGER, STRING, ENUM, CI, SET_OF_STRING, SET_OF_CI, LIST_OF_STRING, LIST_OF_CI or MAP_STRING_STRING.
-
getEnumValues
java.util.List<java.lang.String> getEnumValues()
- Returns:
- All the available values if this property is of kind ENUM. Otherwise, an empty list.
-
getReferencedType
Type getReferencedType()
Only relevant for properties of kind CI, SET_OF_CI or LIST_OF_CI.- Returns:
- The type of the referenced configuration item.
-
getDefaultValue
java.lang.Object getDefaultValue()
- Returns:
- The default value of the property.
-
isHidden
boolean isHidden()
Hidden properties don't show up in the UI. Note that a hidden property must have a default value.- Returns:
- Whether the property is hidden.
-
get
java.lang.Object get(ConfigurationItem item)
- Parameters:
item- AConfigurationItem.- Returns:
- The value for this property of the given CI.
-
set
void set(ConfigurationItem item, java.lang.Object value)
Set the given value for this property of the givenConfigurationItem.
-
areEqual
boolean areEqual(ConfigurationItem item, ConfigurationItem other)
-
areEqual
boolean areEqual(ConfigurationItem item, ConfigurationItem other, java.util.function.Function<ConfigurationItem,java.lang.Object> identifierExtractor)
-
isInspectionProperty
boolean isInspectionProperty()
- Returns:
- Whether this property is used for inspection (discovery).
-
isRequiredForInspection
boolean isRequiredForInspection()
- Returns:
- Whether this property is required in order to start the discovery process.
-
isTransient
boolean isTransient()
- Returns:
- Whether the property is persisted in the repository or not.
-
isReadonly
boolean isReadonly()
- Returns:
- Whether the property is readonly or not.
-
getAliases
java.util.Set<java.lang.String> getAliases()
- Returns:
- The aliases with which this property can be referred.
-
getCandidateValuesFilter
java.lang.String getCandidateValuesFilter()
TheCandidateValuesFilterto apply when selecting values for this CI, SET_OF_CI, LIST_OF_CI property- Returns:
- The name of the
CandidateValuesFilter
-
getFqn
java.lang.String getFqn()
- Returns:
- The fully qualified name of the property. This is the type name followed by a dot and then the property name.
For example:
overthere.SshJumpstation.port.
-
isDeployedSpecific
boolean isDeployedSpecific()
-
getAnnotations
java.util.List<java.lang.annotation.Annotation> getAnnotations()
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-