Class AbstractRegistrationInfoPredicate

    • Field Detail

      • matchIfMetadataSilent

        private boolean matchIfMetadataSilent
        What to do if no extension data exists.
    • Constructor Detail

      • AbstractRegistrationInfoPredicate

        public AbstractRegistrationInfoPredicate()
    • Method Detail

      • setMatchIfMetadataSilent

        public void setMatchIfMetadataSilent​(boolean flag)
        Set whether a predicate should evaluate to true if the data being matched on does not exist.
        Parameters:
        flag - flag to set
      • getMatchIfMetadataSilent

        public boolean getMatchIfMetadataSilent()
        Get whether a predicate should evaluate to true if the data being matched on does not exist.
        Returns:
        true iff missing data should evaluate to true
      • getRegistrationInfo

        @Nullable
        protected RegistrationInfo getRegistrationInfo​(@Nullable
                                                       EntityDescriptor entity)
        Get the RegistrationInfo extension associated with an entity, if any.
        Parameters:
        entity - the entity to examine
        Returns:
        the associated extension, or null
      • doApply

        protected abstract boolean doApply​(@Nonnull
                                           RegistrationInfo info)
        Override this method to implement the predicate.
        Parameters:
        info - the information to evaluate
        Returns:
        the result of the predicate