Class BitolContextConstraint

java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.common.BitolContextConstraint

public class BitolContextConstraint extends Object
This class represents negative guidance for AI agents in the AI context of a data contract, schema object, data product or output port: something that must not be done with the element (RFC 0038).
  • Constructor Details

    • BitolContextConstraint

      public BitolContextConstraint()
      Default constructor
  • Method Details

    • getId

      public String getId()
      Return the stable identifier of the constraint.
      Returns:
      String
    • setId

      public void setId(String id)
      Set up the stable identifier of the constraint.
      Parameters:
      id - String
    • getConstraint

      public String getConstraint()
      Return the constraint text.
      Returns:
      String
    • setConstraint

      public void setConstraint(String constraint)
      Set up the constraint text.
      Parameters:
      constraint - String
    • getAuthoritativeDefinitions

      public List<BitolAuthoritativeDefinition> getAuthoritativeDefinitions()
      Return links to the sources behind this constraint.
      Returns:
      List
    • setAuthoritativeDefinitions

      public void setAuthoritativeDefinitions(List<BitolAuthoritativeDefinition> authoritativeDefinitions)
      Set up links to the sources behind this constraint.
      Parameters:
      authoritativeDefinitions - List
    • getTags

      public List<String> getTags()
      Return the tags attached to this constraint.
      Returns:
      List
    • setTags

      public void setTags(List<String> tags)
      Set up the tags attached to this constraint.
      Parameters:
      tags - List
    • getCustomProperties

      public List<BitolCustomProperty> getCustomProperties()
      Return the custom properties of this constraint.
      Returns:
      List
    • setCustomProperties

      public void setCustomProperties(List<BitolCustomProperty> customProperties)
      Set up the custom properties of this constraint.
      Parameters:
      customProperties - List
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int