Class ValidValueMembershipProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.validvalues.ValidValueMembershipProperties
ValidValueMembershipProperties provides a flag to indicate if this value is the default value for the set.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.boolean
Return whether it is a default value.int
hashCode()
Return hash code based on properties.void
setDefaultValue
(boolean defaultValue) Set up whether it is a default value.toString()
JSON-style toStringMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
Constructor Details
-
ValidValueMembershipProperties
public ValidValueMembershipProperties()Default constructor -
ValidValueMembershipProperties
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getDefaultValue
public boolean getDefaultValue()Return whether it is a default value.- Returns:
- flag
-
setDefaultValue
public void setDefaultValue(boolean defaultValue) Set up whether it is a default value.- Parameters:
defaultValue
- flag
-
toString
JSON-style toString- Overrides:
toString
in classRelationshipProperties
- Returns:
- return string containing the property names and values
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classRelationshipProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classRelationshipProperties
- Returns:
- int
-