Class MarkCollectionProposer
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,MarksInitialization>
org.anchoranalysis.mpp.bean.MarksBean<T>
org.anchoranalysis.mpp.bean.proposer.ProposerBean<MarkCollectionProposer>
org.anchoranalysis.mpp.bean.proposer.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 Constructor Description MarkCollectionProposer() -
Method Summary
Modifier and Type Method Description abstract Optional<MarkCollection>propose(MarkWithIdentifierFactory markFactory, ProposerContext context)Proposes a collection of marks.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
MarkCollectionProposer
public MarkCollectionProposer()
-
-
Method Details
-
propose
public abstract Optional<MarkCollection> propose(MarkWithIdentifierFactory markFactory, ProposerContext context) throws ProposalAbnormalFailureExceptionProposes 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
-