Class PropertyProfile<T>
java.lang.Object
com.levigo.jadice.annotation.profiles.PropertyProfile<T>
- Direct Known Subclasses:
ColorProperty,DiscreteProperty,FixedProperty,RangeProperty,UnrestrictedProperty
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn theAnnotationTypeon which this property is defined.Deprecated.This method is for XML umarshalling use onlyorg.jadice.util.base.Factory<AnnotationPropertyEditor<T, ?, ?>, RuntimeException> org.jadice.util.base.Factory<AnnotationPropertyEditor<T, ?, ?>, RuntimeException> getEditorFactory(String toolkit) getLabel()Class<?> inthashCode()booleanvoidsetDefaultValue(T defaultValue) voidsetDefaultValueXML(String defaultValue) voidvoidsetPreferredValues(List<T> preferredValues) voidsetPropertyName(String propertyName) voidsetPropertyType(Class<?> propertyType) voidsetVirtual(boolean virtual) void
-
Field Details
-
propertyType
-
-
Constructor Details
-
PropertyProfile
public PropertyProfile()
-
-
Method Details
-
setPropertyName
- Parameters:
propertyName- the propertyName to set
-
setPropertyType
- Parameters:
propertyType- the propertyType to set
-
getPropertyType
- Returns:
- the propertyType
-
getPropertyName
- Returns:
- the propertyName
-
setDefaultValue
- Parameters:
defaultValue- the defaultValue to set
-
setDefaultValueXML
- Parameters:
defaultValue- the defaultValue to set
-
getDefaultValue
- Returns:
- the defaultValue
-
setPreferredValues
- Parameters:
preferredValues- the preferredValues to set
-
getPreferredValues
- Returns:
- the preferredValues
-
hashCode
public int hashCode() -
equals
-
getAnnotationProfile
Return theAnnotationTypeon which this property is defined. Beware: for inherited properties, this points to the super-type.- Returns:
- the annotationProfile
-
getEditorFactory
public org.jadice.util.base.Factory<AnnotationPropertyEditor<T,?, getEditorFactory()?>, RuntimeException> -
getEditorFactory
public org.jadice.util.base.Factory<AnnotationPropertyEditor<T,?, getEditorFactory?>, RuntimeException> (String toolkit) -
getEditorFactories
Deprecated.This method is for XML umarshalling use only -
setLabels
-
getLabels
-
getLabel
-
setVirtual
public void setVirtual(boolean virtual) -
isVirtual
public boolean isVirtual() -
validate
-