Class FieldValue
java.lang.Object
org.eclipse.scanning.api.annotation.ui.FieldValue
Class to be used for editing the field of a Model
Reads annotations used on the models field and provides discovery information about the field.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget()Get fields valueget(boolean create) static ObjectTries to find the no-argument getter for this field, ignoring case so that camel case may be used in method names.getModel()getName()getType()inthashCode()booleanstatic booleanisModelField(Object model, String name) voidSet fields valuevoidsetModel(IScanPathModel model) voidtoString()
-
Constructor Details
-
FieldValue
-
-
Method Details
-
getModel
-
setModel
-
getName
-
setName
-
getDisplayName
-
hashCode
public int hashCode() -
equals
-
getType
-
getAnnotation
-
isFileProperty
public boolean isFileProperty() -
set
Set fields value- Parameters:
value-- Throws:
Exception
-
get
Get fields value- Returns:
- value
-
get
public Object get(boolean create) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, InstantiationException, NoSuchMethodException, SecurityException -
get
public static Object get(Object model, String name) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException Tries to find the no-argument getter for this field, ignoring case so that camel case may be used in method names. This means that this method is not particularly fast, so avoid calling in big loops! -
isModelField
- Throws:
SecurityException
-
toString
-