Class GlossarySearchStringRequestBody

java.lang.Object
org.odpi.openmetadata.viewservices.glossarybrowser.rest.GlossaryResultsRequestBody
org.odpi.openmetadata.viewservices.glossarybrowser.rest.GlossarySearchStringRequestBody

public class GlossarySearchStringRequestBody extends GlossaryResultsRequestBody
GlossarySearchStringRequestBody is the request body structure used on GlossaryCategory/Term REST API calls that passes a regular expression to use as a search string and the scope of the results can be optionally restricted by glossary.
  • Constructor Details

    • GlossarySearchStringRequestBody

      public GlossarySearchStringRequestBody()
      Default constructor
    • GlossarySearchStringRequestBody

      public GlossarySearchStringRequestBody(GlossarySearchStringRequestBody template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getSearchString

      public String getSearchString()
      Return the search request.
      Returns:
      regEx expression
    • setSearchString

      public void setSearchString(String searchString)
      Set up the search.
      Parameters:
      searchString - regEx expression
    • getSearchStringParameterName

      public String getSearchStringParameterName()
      Return the search string parameter name.
      Returns:
      string name
    • setSearchStringParameterName

      public void setSearchStringParameterName(String searchStringParameterName)
      Set up the search string parameter name.
      Parameters:
      searchStringParameterName - string name
    • getTypeName

      public String getTypeName()
      Return the optional type name for the search results (null means any type).
      Returns:
      unique name of type
    • setTypeName

      public void setTypeName(String typeName)
      Set up the optional type name for the search results (null means any type).
      Parameters:
      typeName - unique name of type
    • getGlossaryGUID

      public String getGlossaryGUID()
      Return the unique identifier of the glossary scope.
      Returns:
      string guid
    • setGlossaryGUID

      public void setGlossaryGUID(String glossaryGUID)
      Set up the unique identifier of the glossary scope.
      Parameters:
      glossaryGUID - string
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class GlossaryResultsRequestBody
      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 GlossaryResultsRequestBody
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class GlossaryResultsRequestBody
      Returns:
      int hash code