Class CommunityMembershipProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.communities.CommunityMembershipProperties
CommunityMembershipProperties provides a details of the purpose (and privileges) of the membership role.
-
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.Return the membership type.int
hashCode()
Return hash code based on properties.void
setMembershipType
(CommunityMembershipType membershipType) Set up the membership type.toString()
JSON-style toStringMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
Constructor Details
-
CommunityMembershipProperties
public CommunityMembershipProperties()Default constructor -
CommunityMembershipProperties
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getMembershipType
Return the membership type.- Returns:
- membership type
-
setMembershipType
Set up the membership type.- Parameters:
membershipType
- membership type
-
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
-