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
  • Field Details

    • propertyType

      protected Class<T> propertyType
  • Constructor Details

    • PropertyProfile

      public PropertyProfile()
  • Method Details

    • 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
    • setPreferredValues

      public void setPreferredValues(List<T> preferredValues)
      Parameters:
      preferredValues - the preferredValues to set
    • getPreferredValues

      public List<T> getPreferredValues()
      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 org.jadice.util.base.Factory<AnnotationPropertyEditor<T,?,?>,RuntimeException> getEditorFactory()
    • getEditorFactory

      public org.jadice.util.base.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()
    • setVirtual

      public void setVirtual(boolean virtual)
    • isVirtual

      public boolean isVirtual()
    • validate

      public void validate(List<String> validationMessages)