Class PropertyField
- java.lang.Object
-
- org.crumbleworks.forge.crumbprops.PropertyField
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdefaultValue()StringgetStringValue()ObjectgetValue()Stringkey()voidsetStringValue(String value)Sets the value on the managedPropertyFile-annotated class' instance, converted from a string.voidsetValue(Object value)Sets the value on the managedPropertyFile-annotated class' instance.Class<?>type()
-
-
-
Method Detail
-
key
public String key()
-
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 managedPropertyFile-annotated class' instance.
-
setStringValue
public void setStringValue(String value)
Sets the value on the managedPropertyFile-annotated class' instance, converted from a string.
-
-