Class FacetRule


  • public final class FacetRule
    extends Object
    • Constructor Detail

      • FacetRule

        public FacetRule​(String facet,
                         String value,
                         boolean equal,
                         boolean optional,
                         int type)
    • Method Detail

      • getFacet

        public String getFacet()
        Get the string representation of the facet
        Returns:
        the facet
      • getValue

        public String getValue()
        The value of the facet rule to match
        Returns:
        the value
      • isEqual

        public boolean isEqual()
        Check for equality or inequality
        Returns:
        true if to rule has to check for equality
      • isOptional

        public boolean isOptional()
        When the facet is optional, it does not need to be present on a node for the rule to match. If it is present on the node, it's value must conform to the #isEqual and #getValue.

        When the facet is not optional, the rule only matches when the facet is available on the node.

        Returns:
        true if the facet is optional
      • getType

        public int getType()
        Get the PropertyType of the facet
        Returns:
        the type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object