Package com.storedobject.ui
Class ObjectGetField.GetSupplier<O extends StoredObject>
java.lang.Object
com.storedobject.ui.ObjectGetField.GetSupplier<O>
- Type Parameters:
O- Type of class.
- All Implemented Interfaces:
ObjectGetField.GetProvider<O>
- Direct Known Subclasses:
ObjectGetField.GetTypedSupplier
- Enclosing class:
ObjectGetField<T extends StoredObject>
public static class ObjectGetField.GetSupplier<O extends StoredObject>
extends Object
implements ObjectGetField.GetProvider<O>
Implementation of
ObjectGetField.GetProvider for normal StoredObject classes.- Author:
- Syam
-
Constructor Summary
ConstructorsConstructorDescriptionGetSupplier(Class<O> objectClass) Constructor.GetSupplier(Class<O> objectClass, String getMethodName, String listMethodName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetTextObject(SystemEntity systemEntity, String value) Get an object instance for the search text specified.listTextObjects(SystemEntity systemEntity, String value) Get a list of object instances for the search text specified.
-
Constructor Details
-
GetSupplier
-
GetSupplier
-
GetSupplier
public GetSupplier()
-
-
Method Details
-
getTextObject
Description copied from interface:ObjectGetField.GetProviderGet an object instance for the search text specified.- Specified by:
getTextObjectin interfaceObjectGetField.GetProvider<O extends StoredObject>- Parameters:
systemEntity- System entity for which this search should be conducted.value- Search text for which object instance needs to be returned.- Returns:
- Object instance matching the search text.
- Throws:
Exception- If any error occurs while retrieving the object instance.
-
listTextObjects
Description copied from interface:ObjectGetField.GetProviderGet a list of object instances for the search text specified.- Specified by:
listTextObjectsin interfaceObjectGetField.GetProvider<O extends StoredObject>- Parameters:
systemEntity- System entity for which this search should be conducted.value- Search text for which object instances need to be returned.- Returns:
- Object instances matching the search text as an iterator.
- Throws:
Exception- If any error occurs while retrieving the object instances.
-