Class ResourcePhysicalStatusAnnotation


public class ResourcePhysicalStatusAnnotation extends ResourceMeasureAnnotation
DataSourceMeasurementAnnotation describes properties that describe the physical characteristics of a data source.
  • Constructor Details

    • ResourcePhysicalStatusAnnotation

      public ResourcePhysicalStatusAnnotation()
      Default constructor
    • ResourcePhysicalStatusAnnotation

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

    • getCreateTime

      public Date getCreateTime()
      Return the date and time that the data source was created.
      Returns:
      date time
    • setCreateTime

      public void setCreateTime(Date createTime)
      Set up the date and time that the data source was created.
      Parameters:
      createTime - date time
    • getModifiedTime

      public Date getModifiedTime()
      Return the time that the file was last modified.
      Returns:
      userId
    • setModifiedTime

      public void setModifiedTime(Date modifiedTime)
      Set up the time that the file was last modified.
      Parameters:
      modifiedTime - date time
    • getLastAccessedTime

      public Date getLastAccessedTime()
      Return the last time that the resource was accessed.
      Returns:
      date time
    • setLastAccessedTime

      public void setLastAccessedTime(Date lastAccessedTime)
      Set up the last time that the resource was accessed.
      Parameters:
      lastAccessedTime - date time
    • getSize

      public long getSize()
      Return the size in bytes of the data source.
      Returns:
      int
    • setSize

      public void setSize(long size)
      Set up the size in bytes of the data source.
      Parameters:
      size - int
    • getEncoding

      public String getEncoding()
      Return the encoding of the data source.
      Returns:
      encoding format description
    • setEncoding

      public void setEncoding(String encoding)
      Set up the encoding of the data source.
      Parameters:
      encoding - encoding format description
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class ResourceMeasureAnnotation
      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 ResourceMeasureAnnotation
      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 ResourceMeasureAnnotation
      Returns:
      int hash code