Class LocalPropertyDescriptor
- java.lang.Object
-
- com.xebialabs.deployit.booter.local.LocalPropertyDescriptor
-
- All Implemented Interfaces:
com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
- Direct Known Subclasses:
ExtendByPropertyDescriptor,LocalPropertyDescriptorWithDifferentOwner,SyntheticLocalPropertyDescriptor
public abstract class LocalPropertyDescriptor extends java.lang.Object implements com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerloggerprotected java.util.Set<com.xebialabs.deployit.plugin.api.validation.Validator<?>>validationRules
-
Constructor Summary
Constructors Constructor Description LocalPropertyDescriptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddDefaultValidationRules()booleanareEqual(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem item, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem other)booleanareEqual(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem item, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem other, java.util.function.Function<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem,java.lang.Object> identifierExtractor)protected abstract voiddoSetValue(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem item, java.lang.Object value)java.lang.ObjectemptyValue()java.util.Set<java.lang.String>getAliases()java.util.List<java.lang.annotation.Annotation>getAnnotations()java.lang.StringgetCandidateValuesFilter()java.lang.StringgetCategory()LocalDescriptorgetDeclaringDescriptor()java.lang.ObjectgetDefaultValue()java.lang.StringgetDescription()java.lang.Class<?>getEnumClass()java.util.List<java.lang.String>getEnumValues()java.lang.StringgetFqn()com.xebialabs.deployit.plugin.api.reflect.InputHintgetInputHint()com.xebialabs.deployit.plugin.api.reflect.PropertyKindgetKind()java.lang.StringgetLabel()java.lang.StringgetName()com.xebialabs.deployit.plugin.api.reflect.TypegetReferencedType()com.xebialabs.deployit.plugin.api.udm.Property.SizegetSize()protected voidinitEnumValues(java.lang.Class<?> enumClass)booleanisAsContainment()booleanisDeployedSpecific()booleanisHidden()booleanisInspectionProperty()booleanisNested()booleanisPassword()booleanisReadonly()booleanisRequired()booleanisRequiredForInspection()booleanisTransient()protected voidregisterDefault(com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor superPropertyDescriptor)protected voidregisterDefault(java.lang.String defaultValue)protected voidreInitializeRequired()voidset(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem item, java.lang.Object value)protected voidsetAliases(java.util.Set<java.lang.String> aliases)protected voidsetAnnotations(java.util.List<java.lang.annotation.Annotation> annotations)protected voidsetAsContainment(boolean asContainment)protected voidsetCandidateValuesFilter(java.lang.String candidateValuesFilter)protected voidsetCategory(java.lang.String category)protected voidsetDeclaringDescriptor(LocalDescriptor declaringDescriptor)protected voidsetDeployedSpecific(boolean deployedSpecific)protected voidsetDescription(java.lang.String description)protected voidsetEnumClass(java.lang.Class<?> enumClass)protected voidsetEnumValues(java.util.List<java.lang.String> enumValues)protected voidsetFromPropertyDescriptor(LocalPropertyDescriptor pd)protected voidsetHidden(boolean hidden)protected voidsetInputHint(com.xebialabs.deployit.plugin.api.reflect.InputHint inputHint)protected voidsetInspectionProperty(boolean inspectionProperty)protected voidsetKind(com.xebialabs.deployit.plugin.api.reflect.PropertyKind kind)protected voidsetLabel(java.lang.String label)protected voidsetName(java.lang.String name)protected voidsetNested(boolean nested)protected voidsetPassword(boolean password)protected voidsetPrimitiveKind(com.xebialabs.deployit.plugin.api.reflect.PropertyKind kind)protected voidsetReadonly(boolean aReadonly)protected voidsetReferencedType(com.xebialabs.deployit.plugin.api.reflect.Type referencedType)protected voidsetRequired(boolean required)protected voidsetRequiredForInspection(boolean requiredForInspection)protected voidsetSize(com.xebialabs.deployit.plugin.api.udm.Property.Size size)protected voidsetTransient(boolean aTransient)protected voidsetValidationRules(java.util.Set<com.xebialabs.deployit.plugin.api.validation.Validator<?>> validationRules)java.lang.StringtoString()voidverify(com.xebialabs.deployit.booter.local.Verifications verifications)
-
-
-
Method Detail
-
reInitializeRequired
protected void reInitializeRequired()
-
setFromPropertyDescriptor
protected void setFromPropertyDescriptor(LocalPropertyDescriptor pd)
-
verify
public void verify(com.xebialabs.deployit.booter.local.Verifications verifications)
-
initEnumValues
protected void initEnumValues(java.lang.Class<?> enumClass)
-
addDefaultValidationRules
protected void addDefaultValidationRules()
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isAsContainment
public boolean isAsContainment()
- Specified by:
isAsContainmentin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isNested
public boolean isNested()
- Specified by:
isNestedin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getCategory
public java.lang.String getCategory()
- Specified by:
getCategoryin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getLabel
public java.lang.String getLabel()
- Specified by:
getLabelin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isPassword
public boolean isPassword()
- Specified by:
isPasswordin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isRequired
public boolean isRequired()
- Specified by:
isRequiredin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getSize
public com.xebialabs.deployit.plugin.api.udm.Property.Size getSize()
- Specified by:
getSizein interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getKind
public com.xebialabs.deployit.plugin.api.reflect.PropertyKind getKind()
- Specified by:
getKindin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getEnumValues
public java.util.List<java.lang.String> getEnumValues()
- Specified by:
getEnumValuesin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getEnumClass
public java.lang.Class<?> getEnumClass()
-
getDeclaringDescriptor
public LocalDescriptor getDeclaringDescriptor()
-
getReferencedType
public com.xebialabs.deployit.plugin.api.reflect.Type getReferencedType()
- Specified by:
getReferencedTypein interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getDefaultValue
public java.lang.Object getDefaultValue()
- Specified by:
getDefaultValuein interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getAliases
public java.util.Set<java.lang.String> getAliases()
- Specified by:
getAliasesin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getCandidateValuesFilter
public java.lang.String getCandidateValuesFilter()
- Specified by:
getCandidateValuesFilterin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isHidden
public boolean isHidden()
- Specified by:
isHiddenin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
set
public void set(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem item, java.lang.Object value)- Specified by:
setin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
doSetValue
protected abstract void doSetValue(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem item, java.lang.Object value)
-
areEqual
public boolean areEqual(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem item, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem other)- Specified by:
areEqualin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
areEqual
public boolean areEqual(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem item, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem other, java.util.function.Function<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem,java.lang.Object> identifierExtractor)- Specified by:
areEqualin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isInspectionProperty
public boolean isInspectionProperty()
- Specified by:
isInspectionPropertyin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isRequiredForInspection
public boolean isRequiredForInspection()
- Specified by:
isRequiredForInspectionin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isReadonly
public boolean isReadonly()
- Specified by:
isReadonlyin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getFqn
public java.lang.String getFqn()
- Specified by:
getFqnin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
isDeployedSpecific
public boolean isDeployedSpecific()
- Specified by:
isDeployedSpecificin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getInputHint
public com.xebialabs.deployit.plugin.api.reflect.InputHint getInputHint()
- Specified by:
getInputHintin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
getAnnotations
public java.util.List<java.lang.annotation.Annotation> getAnnotations()
- Specified by:
getAnnotationsin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacecom.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor- Overrides:
toStringin classjava.lang.Object
-
emptyValue
public java.lang.Object emptyValue()
-
setName
protected void setName(java.lang.String name)
-
setAsContainment
protected void setAsContainment(boolean asContainment)
-
setNested
protected void setNested(boolean nested)
-
setCategory
protected void setCategory(java.lang.String category)
-
setDescription
protected void setDescription(java.lang.String description)
-
setLabel
protected void setLabel(java.lang.String label)
-
setPassword
protected void setPassword(boolean password)
-
setRequired
protected void setRequired(boolean required)
-
setSize
protected void setSize(com.xebialabs.deployit.plugin.api.udm.Property.Size size)
-
setKind
protected void setKind(com.xebialabs.deployit.plugin.api.reflect.PropertyKind kind)
-
setPrimitiveKind
protected void setPrimitiveKind(com.xebialabs.deployit.plugin.api.reflect.PropertyKind kind)
-
setEnumValues
protected void setEnumValues(java.util.List<java.lang.String> enumValues)
-
setEnumClass
protected void setEnumClass(java.lang.Class<?> enumClass)
-
setHidden
protected void setHidden(boolean hidden)
-
setReferencedType
protected void setReferencedType(com.xebialabs.deployit.plugin.api.reflect.Type referencedType)
-
setInspectionProperty
protected void setInspectionProperty(boolean inspectionProperty)
-
setTransient
protected void setTransient(boolean aTransient)
-
setReadonly
protected void setReadonly(boolean aReadonly)
-
setCandidateValuesFilter
protected void setCandidateValuesFilter(java.lang.String candidateValuesFilter)
-
setDeployedSpecific
protected void setDeployedSpecific(boolean deployedSpecific)
-
setDeclaringDescriptor
protected void setDeclaringDescriptor(LocalDescriptor declaringDescriptor)
-
setRequiredForInspection
protected void setRequiredForInspection(boolean requiredForInspection)
-
setAliases
protected void setAliases(java.util.Set<java.lang.String> aliases)
-
setValidationRules
protected void setValidationRules(java.util.Set<com.xebialabs.deployit.plugin.api.validation.Validator<?>> validationRules)
-
setInputHint
protected void setInputHint(com.xebialabs.deployit.plugin.api.reflect.InputHint inputHint)
-
setAnnotations
protected void setAnnotations(java.util.List<java.lang.annotation.Annotation> annotations)
-
registerDefault
protected void registerDefault(java.lang.String defaultValue)
-
registerDefault
protected void registerDefault(com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor superPropertyDescriptor)
-
-