com.levigo.jadice.annotation.profiles
Class PropertyProfile<T>
java.lang.Object
com.levigo.jadice.annotation.profiles.PropertyProfile<T>
- Direct Known Subclasses:
- ColorProperty, DiscreteProperty, FixedProperty, RangeProperty, UnrestrictedProperty
public abstract class PropertyProfile<T>
- extends Object
propertyType
protected Class<T> propertyType
PropertyProfile
public PropertyProfile()
setPropertyName
public void setPropertyName(String propertyName)
- Parameters:
propertyName
- the propertyName to set
setPropertyType
public void setPropertyType(Class<?> propertyType)
- Parameters:
propertyType
- the propertyType to set
getPropertyType
public Class<?> getPropertyType()
- Returns:
- the propertyType
getPropertyName
public String getPropertyName()
- Returns:
- the propertyName
setDefaultValue
public void setDefaultValue(T defaultValue)
- Parameters:
defaultValue
- the defaultValue to set
setDefaultValueXML
public void setDefaultValueXML(String defaultValue)
- Parameters:
defaultValue
- the defaultValue to set
getDefaultValue
public T getDefaultValue()
- Returns:
- the defaultValue
getDefaultValueXML
public String getDefaultValueXML()
- Returns:
- the defaultValue
setPreferredValues
public void setPreferredValues(List<T> preferredValues)
- Parameters:
preferredValues
- the preferredValues to set
getPreferredValues
public List<T> getPreferredValues()
- Returns:
- the preferredValues
setPreferredValuesXML
public void setPreferredValuesXML(String[] preferredValuesXML)
- Parameters:
preferredValuesXML
- the preferredValues to set
getPreferredValuesXML
public String[] getPreferredValuesXML()
- Returns:
- the preferredValues
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getAnnotationProfile
public AnnotationType getAnnotationProfile()
- Return the
AnnotationType
on which this property is defined. Beware: for inherited
properties, this points to the super-type.
- Returns:
- the annotationProfile
getEditorFactory
public Factory<AnnotationPropertyEditor<T,?,?>,RuntimeException> getEditorFactory()
getEditorFactory
public Factory<AnnotationPropertyEditor<T,?,?>,RuntimeException> getEditorFactory(String toolkit)
getEditorFactories
@Deprecated
public List<ToolkitBasedFactory<AnnotationPropertyEditor<T,?,?>>> getEditorFactories()
- Deprecated. This method is for XML umarshalling use only
setLabels
public void setLabels(Labels labels)
getLabels
public Labels getLabels()
getLabel
public String getLabel(Locale locale)
getLabel
public String getLabel()
setVirtual
public void setVirtual(boolean virtual)
isVirtual
public boolean isVirtual()
validate
public void validate(List<String> validationMessages)
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.