com.levigo.jadice.annotation.profiles
Class PropertyProfile<T>

java.lang.Object
  extended by com.levigo.jadice.annotation.profiles.PropertyProfile<T>
Direct Known Subclasses:
ColorProperty, DiscreteProperty, FixedProperty, RangeProperty, UnrestrictedProperty

public abstract class PropertyProfile<T>
extends Object


Field Summary
protected  Class<T> propertyType
           
 
Constructor Summary
PropertyProfile()
           
 
Method Summary
 boolean equals(Object obj)
           
 AnnotationType getAnnotationProfile()
          Return the AnnotationType on which this property is defined.
 T getDefaultValue()
           
 String getDefaultValueXML()
           
 List<ToolkitBasedFactory<AnnotationPropertyEditor<T,?,?>>> getEditorFactories()
          Deprecated. This method is for XML umarshalling use only
 Factory<AnnotationPropertyEditor<T,?,?>,RuntimeException> getEditorFactory()
           
 Factory<AnnotationPropertyEditor<T,?,?>,RuntimeException> getEditorFactory(String toolkit)
           
 String getLabel()
           
 String getLabel(Locale locale)
           
 Labels getLabels()
           
 List<T> getPreferredValues()
           
 String[] getPreferredValuesXML()
           
 String getPropertyName()
           
 Class<?> getPropertyType()
           
 int hashCode()
           
 boolean isVirtual()
           
 void setDefaultValue(T defaultValue)
           
 void setDefaultValueXML(String defaultValue)
           
 void setLabels(Labels labels)
           
 void setPreferredValues(List<T> preferredValues)
           
 void setPreferredValuesXML(String[] preferredValuesXML)
           
 void setPropertyName(String propertyName)
           
 void setPropertyType(Class<?> propertyType)
           
 void setVirtual(boolean virtual)
           
 void validate(List<String> validationMessages)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyType

protected Class<T> propertyType
Constructor Detail

PropertyProfile

public PropertyProfile()
Method Detail

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.