Package com.storedobject.core
Interface ObjectGetter<T extends StoredObject>
- Type Parameters:
T- Type of object provided.
- All Known Subinterfaces:
AbstractObjectInput<T>,DelegatedIdInput<T>,DelegatedObjectInput<T>,IdInput<T>,ItemInput<T>,ObjectInput<T>
- All Known Implementing Classes:
AbstractObjectField,AccountField,AssemblyItemField,BinField,BlockComboField,FileField,ItemComboField,ItemField,ItemGetField,ItemTypeGetField,LocationField,ObjectCodeField,ObjectComboField,ObjectField,ObjectFormField,ObjectGetField,ObjectListField,ObjectSearcherField,ObjectSearchField,UserField
public interface ObjectGetter<T extends StoredObject>
Definition of an "object getter" - classes that provide an object of a specific type.
- Author:
- Syam
-
Method Details
-
getObject
Get the object that is provided. The default implementation tries to retrieve the object corresponding to theIdreturned by thegetObjectId()method.Note: Either this method or
getObjectId()should be implemented. Otherwise, it will result in infinite recursion.- Returns:
- Object provided.
-
getObjectId
Get theIdof object that is provided. The default implementation tries to return theIdof object returned by thegetObject()method.Note: Either this method or
getObject()should be implemented. Otherwise, it will result in infinite recursion.- Returns:
- Object provided.
-
isAllowAny
default boolean isAllowAny()Whether all any type of objects derived from the type is allowed or not. Default implementation returnsfalse.- Returns:
- True or false.
-
getObjectClass
-