Class DcatDocumentResponse

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
org.odpi.openmetadata.viewservices.assetcatalog.rest.DcatDocumentResponse
All Implemented Interfaces:
FFDCResponse, RequestIdService

public class DcatDocumentResponse extends FFDCResponseBase
DcatDocumentResponse is the response structure used on the Asset Catalog OMVS REST API calls that return the description of an asset in the W3C Data Catalog Vocabulary (DCAT). The document property holds a complete JSON-LD document, including its context, that can be extracted and passed to any tool that understands DCAT.
  • Constructor Details

    • DcatDocumentResponse

      public DcatDocumentResponse()
      Default constructor
    • DcatDocumentResponse

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

    • getDocument

      public Map<String,Object> getDocument()
      Return the DCAT description as a JSON-LD document.
      Returns:
      JSON-LD document
    • setDocument

      public void setDocument(Map<String,Object> document)
      Set up the DCAT description as a JSON-LD document.
      Parameters:
      document - JSON-LD document
    • 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