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 TypeMethodDescriptionboolean
Return theAnnotationType
on 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
<?> int
hashCode()
boolean
void
setDefaultValue
(T defaultValue) void
setDefaultValueXML
(String defaultValue) void
void
setPreferredValues
(List<T> preferredValues) void
setPropertyName
(String propertyName) void
setPropertyType
(Class<?> propertyType) void
setVirtual
(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 theAnnotationType
on 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
-