Class NameListResponse

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
org.odpi.openmetadata.commonservices.ffdc.rest.NameListResponse
All Implemented Interfaces:
FFDCResponse

public class NameListResponse extends FFDCResponseBase
NameListResponse is the response structure used on the OMAS REST API calls that return a list of names as a response.
  • Constructor Details

    • NameListResponse

      public NameListResponse()
      Default constructor
    • NameListResponse

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

    • getNames

      public List<String> getNames()
      Return the name list result.
      Returns:
      list of strings
    • setNames

      public void setNames(List<String> names)
      Set up the name list result.
      Parameters:
      names - list of strings
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class FFDCResponseBase
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class FFDCResponseBase
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class FFDCResponseBase
      Returns:
      int hash code