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

public class DcatPeriodOfTime extends Object
DcatPeriodOfTime describes a temporal period covered by a dataset (dct:PeriodOfTime).
  • Constructor Details

    • DcatPeriodOfTime

      public DcatPeriodOfTime()
      Default constructor
  • Method Details

    • getStartDate

      public String getStartDate()
      Return the start of the period (dcat:startDate).
      Returns:
      string date
    • setStartDate

      public void setStartDate(String startDate)
      Set up the start of the period (dcat:startDate).
      Parameters:
      startDate - string date
    • getEndDate

      public String getEndDate()
      Return the end of the period (dcat:endDate).
      Returns:
      string date
    • setEndDate

      public void setEndDate(String endDate)
      Set up the end of the period (dcat:endDate).
      Parameters:
      endDate - string date
    • 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