Class FieldUtils
java.lang.Object
org.eclipse.scanning.api.annotation.ui.FieldUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic FieldDescriptorgetAnnotation(Object model, String fieldName) static FieldSearch for a field in a model class or its superclassesstatic Collection<FieldValue> getModelFields(Object model) Get a collection of the fields of the model that should be edited in the User interface for editing the model.static booleanisFileType(Class<? extends Object> clazz)
-
Method Details
-
isFileType
-
getAnnotation
public static FieldDescriptor getAnnotation(Object model, String fieldName) throws NoSuchFieldException, SecurityException -
getField
public static Field getField(Object model, String fieldName) throws NoSuchFieldException, SecurityException Search for a field in a model class or its superclasses- Parameters:
model- an object which is an instance of a model classfieldName- theFieldto find- Returns:
- the
Field(if it exists): otherwise, an exception is thrown - Throws:
NoSuchFieldExceptionSecurityException
-
getModelFields
Get a collection of the fields of the model that should be edited in the User interface for editing the model.- Returns:
- collection of fields.
- Throws:
Exception
-