java.lang.Object
org.odpi.openmetadata.frameworks.integration.dcat.properties.DcatDocument

public class DcatDocument extends Object
DcatDocument holds the resources described in a single DCAT document. The resources are held in three lists: the catalogs, the datasets (including dataset series) and the data services.
  • Constructor Details

    • DcatDocument

      public DcatDocument()
      Default constructor
  • Method Details

    • getCatalogs

      public List<DcatCatalog> getCatalogs()
      Return the catalogs described in the document.
      Returns:
      list of catalogs
    • setCatalogs

      public void setCatalogs(List<DcatCatalog> catalogs)
      Set up the catalogs described in the document.
      Parameters:
      catalogs - list of catalogs
    • getDatasets

      public List<DcatDataset> getDatasets()
      Return the datasets and dataset series described in the document.
      Returns:
      list of datasets
    • setDatasets

      public void setDatasets(List<DcatDataset> datasets)
      Set up the datasets and dataset series described in the document.
      Parameters:
      datasets - list of datasets
    • getDataServices

      public List<DcatDataService> getDataServices()
      Return the data services described in the document.
      Returns:
      list of data services
    • setDataServices

      public void setDataServices(List<DcatDataService> dataServices)
      Set up the data services described in the document.
      Parameters:
      dataServices - list of data services
    • 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