Class FactPattern

    • Constructor Detail

      • FactPattern

        public FactPattern()
      • FactPattern

        public FactPattern​(String factType)
    • Method Detail

      • getBoundName

        public String getBoundName()
      • setBoundName

        public void setBoundName​(String boundName)
      • isNegated

        public boolean isNegated()
      • setNegated

        public void setNegated​(boolean isNegated)
      • isBound

        public boolean isBound()
        Returns true if there is a variable bound to this fact.
      • getFieldConstraints

        public FieldConstraint[] getFieldConstraints()
        This will return the list of field constraints that are in the root CompositeFieldConstraint object. If there is no root, then an empty array will be returned.
        Returns:
        an empty array, or the list of constraints (which may be composites).
      • setFieldConstraints

        public void setFieldConstraints​(List<FieldConstraint> sortedConstraints)
      • setFactType

        public void setFactType​(String factType)
        WARNING! This method should only be used for fixtures purposes!
        Parameters:
        factType -
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object