Class StampedRelationshipProperties

Direct Known Subclasses:
CertificationProperties, ExceptionProperties, LicenseProperties, LineageRelationshipProperties

public class StampedRelationshipProperties extends LabeledRelationshipProperties
StampedRelationshipProperties describes a labeled relationship that can carry a fingerprint and/or hash that represents the content of the relationship, or of the resources that it describes.
  • Constructor Details

    • StampedRelationshipProperties

      public StampedRelationshipProperties()
      Default constructor
    • StampedRelationshipProperties

      public StampedRelationshipProperties(StampedRelationshipProperties template)
      Copy/clone constructor. Retrieves values from the supplied template
      Parameters:
      template - element to copy
  • Method Details

    • getFingerprint

      public String getFingerprint()
      Return the string value that represents the content of the relationship, or of the resources that it describes.
      Returns:
      string
    • setFingerprint

      public void setFingerprint(String fingerprint)
      Set up the string value that represents the content of the relationship, or of the resources that it describes.
      Parameters:
      fingerprint - string
    • getFingerprintAlgorithm

      public String getFingerprintAlgorithm()
      Return the algorithm used to generate the fingerprint.
      Returns:
      string
    • setFingerprintAlgorithm

      public void setFingerprintAlgorithm(String fingerprintAlgorithm)
      Set up the algorithm used to generate the fingerprint.
      Parameters:
      fingerprintAlgorithm - string
    • getHash

      public Long getHash()
      Return the long value that represents the content of the relationship, or of the resources that it describes.
      Returns:
      long
    • setHash

      public void setHash(Long hash)
      Set up the long value that represents the content of the relationship, or of the resources that it describes.
      Parameters:
      hash - long
    • getHashAlgorithm

      public String getHashAlgorithm()
      Return the algorithm used to generate the hash.
      Returns:
      string
    • setHashAlgorithm

      public void setHashAlgorithm(String hashAlgorithm)
      Set up the algorithm used to generate the hash.
      Parameters:
      hashAlgorithm - string
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class LabeledRelationshipProperties
      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 LabeledRelationshipProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class LabeledRelationshipProperties
      Returns:
      int