Class StampedRelationshipProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.LabeledRelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.StampedRelationshipProperties
- Direct Known Subclasses:
CertificationProperties,ExceptionProperties,LicenseProperties,LineageRelationshipProperties
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.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
typeName -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the string value that represents the content of the relationship, or of the resources that it describes.Return the algorithm used to generate the fingerprint.getHash()Return the long value that represents the content of the relationship, or of the resources that it describes.Return the algorithm used to generate the hash.inthashCode()Return hash code based on properties.voidsetFingerprint(String fingerprint) Set up the string value that represents the content of the relationship, or of the resources that it describes.voidsetFingerprintAlgorithm(String fingerprintAlgorithm) Set up the algorithm used to generate the fingerprint.voidSet up the long value that represents the content of the relationship, or of the resources that it describes.voidsetHashAlgorithm(String hashAlgorithm) Set up the algorithm used to generate the hash.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.LabeledRelationshipProperties
getDescription, getLabel, setDescription, setLabelMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipBeanProperties
getExtendedProperties, getTypeName, setExtendedProperties, setTypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getUnrecognizedProperties, setEffectiveFrom, setEffectiveTo, setUnrecognizedProperties, setUnrecognizedProperty
-
Constructor Details
-
StampedRelationshipProperties
public StampedRelationshipProperties()Default constructor -
StampedRelationshipProperties
Copy/clone constructor. Retrieves values from the supplied template- Parameters:
template- element to copy
-
-
Method Details
-
getFingerprint
Return the string value that represents the content of the relationship, or of the resources that it describes.- Returns:
- string
-
setFingerprint
Set up the string value that represents the content of the relationship, or of the resources that it describes.- Parameters:
fingerprint- string
-
getFingerprintAlgorithm
Return the algorithm used to generate the fingerprint.- Returns:
- string
-
setFingerprintAlgorithm
Set up the algorithm used to generate the fingerprint.- Parameters:
fingerprintAlgorithm- string
-
getHash
Return the long value that represents the content of the relationship, or of the resources that it describes.- Returns:
- long
-
setHash
Set up the long value that represents the content of the relationship, or of the resources that it describes.- Parameters:
hash- long
-
getHashAlgorithm
Return the algorithm used to generate the hash.- Returns:
- string
-
setHashAlgorithm
Set up the algorithm used to generate the hash.- Parameters:
hashAlgorithm- string
-
toString
Standard toString method.- Overrides:
toStringin classLabeledRelationshipProperties- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classLabeledRelationshipProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classLabeledRelationshipProperties- Returns:
- int
-