Class PropertyField


  • public class PropertyField
    extends Object
    Represents a single Property-annotated field.
    Since:
    1.0
    Author:
    Michael Stocker
    • Constructor Detail

      • PropertyField

        public PropertyField​(Object classInstance,
                             Field field,
                             Object convertersInstance,
                             Method convertToType,
                             Method convertFromType)
    • Method Detail

      • defaultValue

        public String defaultValue()
      • type

        public Class<?> type()
      • getValue

        public Object getValue()
        Returns:
        the value as stored on the managed PropertyFile-annotated class' instance
      • getStringValue

        public String getStringValue()
        Returns:
        the value stored on the managed PropertyFile-annotated class' instance, converted to a string. Or the default value, if any.
      • setValue

        public void setValue​(Object value)
        Sets the value on the managed PropertyFile-annotated class' instance.
      • setStringValue

        public void setStringValue​(String value)
        Sets the value on the managed PropertyFile-annotated class' instance, converted from a string.