com.xebialabs.deployit.plugin.api.reflect
Class PropertyDescriptor

java.lang.Object
  extended by com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor

public class PropertyDescriptor
extends java.lang.Object


Constructor Summary
PropertyDescriptor(java.lang.String name)
           
 
Method Summary
 boolean areEqual(ConfigurationItem item, ConfigurationItem other)
           
 java.lang.Object emptyValue()
           
 java.lang.Object get(ConfigurationItem item)
           
 java.lang.String getCategory()
           
 Descriptor getDeclaringDescriptor()
           
 java.lang.Object getDefaultValue()
           
 java.lang.String getDescription()
           
 java.util.List<java.lang.String> getEnumValues()
           
 java.lang.reflect.Field getField()
           
 java.lang.String getFqn()
           
 PropertyKind getKind()
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 Type getReferencedType()
           
 Property.Size getSize()
           
 boolean isAsContainment()
           
 boolean isHidden()
           
 boolean isInspectionProperty()
           
 boolean isPassword()
           
 boolean isRequired()
           
 boolean isRequiredForInspection()
           
 boolean isTransient()
           
 void set(ConfigurationItem item, java.lang.Object value)
           
 void setAsContainment(boolean asContainment)
           
 void setCategory(java.lang.String category)
           
 void setDeclaringDescriptor(Descriptor declaringDescriptor)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setDescription(java.lang.String description)
           
 void setEnumClass(java.lang.Class<?> enumClass)
           
 void setEnumValues(java.util.List<java.lang.String> enumValues)
           
 void setField(java.lang.reflect.Field field)
           
 void setHidden(boolean hidden)
           
 void setInspectionProperty(boolean inspectionProperty)
           
 void setKind(PropertyKind kind)
           
 void setLabel(java.lang.String label)
           
 void setName(java.lang.String name)
           
 void setPassword(boolean password)
           
 void setReferencedType(Type referencedType)
           
 void setRequired(boolean required)
           
 void setRequiredForInspection(boolean requiredForInspection)
           
 void setSize(Property.Size size)
           
 void setTransient(boolean isTransient)
           
 void setValidationRules(java.util.Set<Validator<?>> validationRules)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyDescriptor

public PropertyDescriptor(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

getField

public java.lang.reflect.Field getField()

getDescription

public java.lang.String getDescription()

isAsContainment

public boolean isAsContainment()

getCategory

public java.lang.String getCategory()

getLabel

public java.lang.String getLabel()

isPassword

public boolean isPassword()

isRequired

public boolean isRequired()

getSize

public Property.Size getSize()

getKind

public PropertyKind getKind()

getEnumValues

public java.util.List<java.lang.String> getEnumValues()

getDeclaringDescriptor

public Descriptor getDeclaringDescriptor()

getReferencedType

public Type getReferencedType()

getDefaultValue

public java.lang.Object getDefaultValue()

isHidden

public boolean isHidden()

get

public java.lang.Object get(ConfigurationItem item)

set

public void set(ConfigurationItem item,
                java.lang.Object value)

areEqual

public boolean areEqual(ConfigurationItem item,
                        ConfigurationItem other)

isInspectionProperty

public boolean isInspectionProperty()

isRequiredForInspection

public boolean isRequiredForInspection()

isTransient

public boolean isTransient()

getFqn

public java.lang.String getFqn()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

emptyValue

public java.lang.Object emptyValue()

setDeclaringDescriptor

public void setDeclaringDescriptor(Descriptor declaringDescriptor)

setName

public void setName(java.lang.String name)

setField

public void setField(java.lang.reflect.Field field)

setAsContainment

public void setAsContainment(boolean asContainment)

setCategory

public void setCategory(java.lang.String category)

setDescription

public void setDescription(java.lang.String description)

setLabel

public void setLabel(java.lang.String label)

setPassword

public void setPassword(boolean password)

setRequired

public void setRequired(boolean required)

setSize

public void setSize(Property.Size size)

setKind

public void setKind(PropertyKind kind)

setEnumValues

public void setEnumValues(java.util.List<java.lang.String> enumValues)

setEnumClass

public void setEnumClass(java.lang.Class<?> enumClass)

setReferencedType

public void setReferencedType(Type referencedType)

setHidden

public void setHidden(boolean hidden)

setInspectionProperty

public void setInspectionProperty(boolean inspectionProperty)

setRequiredForInspection

public void setRequiredForInspection(boolean requiredForInspection)

setTransient

public void setTransient(boolean isTransient)

setValidationRules

public void setValidationRules(java.util.Set<Validator<?>> validationRules)

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)