Class MarkCollectionProposer
- All Implemented Interfaces:
CompatibleWithMark
public abstract class MarkCollectionProposer
extends ProposerBean<MarkCollectionProposer>
implements CompatibleWithMark
An abstract base class for proposing an entire collection (configuration) of marks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional
<MarkCollection> propose
(MarkWithIdentifierFactory markFactory, ProposerContext context) Proposes a collection of marks.Methods inherited from class org.anchoranalysis.mpp.bean.MarksBean
initializerForMarksBeans
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.anchoranalysis.mpp.mark.CompatibleWithMark
isCompatibleWith
-
Constructor Details
-
MarkCollectionProposer
public MarkCollectionProposer()
-
-
Method Details
-
propose
public abstract Optional<MarkCollection> propose(MarkWithIdentifierFactory markFactory, ProposerContext context) throws ProposalAbnormalFailureException Proposes a collection of marks.- Parameters:
markFactory
- a factory for creating marks with identifierscontext
- the context for the proposal- Returns:
- an Optional containing the proposed MarkCollection, or empty if no proposal is made
- Throws:
ProposalAbnormalFailureException
- if the proposal fails abnormally
-