Class DisplayConstraintFactory


  • public class DisplayConstraintFactory
    extends java.lang.Object
    A class that will help you manufacture instances of DisplayConstraint.
    Author:
    Alex Kalderimis
    • Constructor Detail

      • DisplayConstraintFactory

        public DisplayConstraintFactory​(InterMineAPI im,
                                        AutoCompleter ac)
        Get an object that creates display constraints.
        Parameters:
        im - The InterMine state object.
        ac - Something that can provide autocomplete hints.
    • Method Detail

      • get

        public DisplayConstraint get​(Path path,
                                     Profile profile,
                                     PathQuery query)
        Get a display constraint.
        Parameters:
        path - The path this constraint constrains.
        profile - The profile of the current user (needed so we know what bags are available)
        query - The query this constraint constrains.
        Returns:
        A display constraint.
      • get

        public DisplayConstraint get​(PathConstraint con,
                                     Profile profile,
                                     PathQuery query)
                              throws PathException
        Get a display constraint.
        Parameters:
        con - The existing constraint we want to wrap.
        profile - The profile of the current user (needed so we know what bags are available)
        query - The query this constraint constrains.
        Returns:
        A display constraint.
        Throws:
        PathException - if the existing constraint is invalid.