Interface MCRFactComputable<F extends MCRFact<?>>

Type Parameters:
F - the class of the fact that can be created by this fact computer
All Superinterfaces:
MCRCondition
All Known Subinterfaces:
MCRFactCondition<F>
All Known Implementing Classes:
MCRAbstractFactCondition, MCRCategoryCondition, MCRCreatedByCondition, MCRIPCondition, MCRMODSCollectionCondition, MCRMODSEmbargoCondition, MCRMODSGenreCondition, MCRPIHasRegisteredCondition, MCRRegExCondition, MCRRoleCondition, MCRStateCondition, MCRStringCondition, MCRUserCondition

public interface MCRFactComputable<F extends MCRFact<?>> extends MCRCondition
This interface can be used to implement a class which can generated new facts based on the current fact list. Usually the fact list already contains a fact with an MyCoRe ObjectID which can be used to retrieve more facts from the given object.
Author:
Robert Stephan
  • Method Details

    • getFactName

      String getFactName()
    • computeFact

      Optional<F> computeFact(MCRFactsHolder facts)
      Implementors are responsible to store the facts holder in the fact set if applicable
      Parameters:
      facts - - the facts holder containing already retrieved facts
      Returns: