Package com.bc.ceres.binding
Class PropertyDescriptor
- java.lang.Object
-
- com.bc.ceres.binding.PropertyDescriptor
-
public class PropertyDescriptor extends Object
Describes a property by its name, type and a set of optional (mutable) attributes. Examples for such attributes are aValueSet
, aPattern
or anValueRange
. Attribute changes may be observed by adding a property (attribute) change listeners to instances of this class.- Since:
- 0.6
-
-
Constructor Summary
Constructors Constructor Description PropertyDescriptor(PropertyDescriptor propertyDescriptor)
PropertyDescriptor(String name, Class<?> type)
PropertyDescriptor(String name, Class<?> type, Map<String,Object> attributes)
-
Method Summary
-
-
-
Method Detail
-
getDisplayName
public static String getDisplayName(PropertyDescriptor propertyDescriptor)
-
getName
public String getName()
-
getType
public Class<?> getType()
-
getDisplayName
public String getDisplayName()
-
setDisplayName
public void setDisplayName(String displayName)
-
getAlias
public String getAlias()
-
setAlias
public void setAlias(String alias)
-
getUnit
public String getUnit()
-
setUnit
public void setUnit(String unit)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isNotNull
public boolean isNotNull()
-
setNotNull
public void setNotNull(boolean notNull)
-
isNotEmpty
public boolean isNotEmpty()
-
setNotEmpty
public void setNotEmpty(boolean notEmpty)
-
isDeprecated
public boolean isDeprecated()
-
setDeprecated
public void setDeprecated(boolean deprecated)
-
isTransient
public boolean isTransient()
-
setTransient
public void setTransient(boolean b)
-
getFormat
public String getFormat()
-
setFormat
public void setFormat(String format)
-
getValueRange
public ValueRange getValueRange()
-
setValueRange
public void setValueRange(ValueRange valueRange)
-
getPattern
public Pattern getPattern()
-
setPattern
public void setPattern(Pattern pattern)
-
getDefaultValue
public Object getDefaultValue()
-
setDefaultValue
public void setDefaultValue(Object defaultValue)
-
getValueSet
public ValueSet getValueSet()
-
setValueSet
public void setValueSet(ValueSet valueSet)
-
getConverter
public Converter<?> getConverter()
-
setConverter
public void setConverter(Converter<?> converter)
-
getConverter
public Converter<?> getConverter(boolean notNull)
-
setDefaultConverter
public void setDefaultConverter()
-
getDomConverter
public DomConverter getDomConverter()
-
setDomConverter
public void setDomConverter(DomConverter converter)
-
getValidator
public Validator getValidator()
-
setValidator
public void setValidator(Validator validator)
-
getPropertySetDescriptor
public PropertySetDescriptor getPropertySetDescriptor()
-
setPropertySetDescriptor
public void setPropertySetDescriptor(PropertySetDescriptor propertySetDescriptor)
-
getItemAlias
public String getItemAlias()
-
setItemAlias
public void setItemAlias(String alias)
-
addAttributeChangeListener
public final void addAttributeChangeListener(PropertyChangeListener listener)
-
removeAttributeChangeListener
public final void removeAttributeChangeListener(PropertyChangeListener listener)
-
getAttributeChangeListeners
public PropertyChangeListener[] getAttributeChangeListeners()
-
getBooleanProperty
public boolean getBooleanProperty(String name)
-
-