Class WithContainerBase
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
ExtendInZWithinContainer
,IntersectsWithContainer
,MergeBase
,NotInContainer
Base class for
ObjectCollectionProviderUnary
that take an optional
objectsContainer
bean-field.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional
<ObjectCollection> Retrieves the optional container of objects.protected ObjectCollection
Retrieves the required container of objects.Optional provider for a container of objects.void
setObjectsContainer
(ObjectCollectionProvider objectsContainer) Optional provider for a container of objects.Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
createFromObjects, get, getObjects, setObjects
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
WithContainerBase
public WithContainerBase()
-
-
Method Details
-
containerOptional
Retrieves the optional container of objects.- Returns:
- an optional containing the object collection if present, or empty if not
- Throws:
ProvisionFailedException
- if retrieving the container fails
-
containerRequired
Retrieves the required container of objects.- Returns:
- the object collection
- Throws:
ProvisionFailedException
- if the container is not defined or retrieving it fails
-
getObjectsContainer
Optional provider for a container of objects. -
setObjectsContainer
Optional provider for a container of objects.
-