Class CommunityMembershipElement
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonalRoleElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CommunityMembershipElement
- All Implemented Interfaces:
MetadataElement
CommunityMembershipElement describes an individual who is a member of a community.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.Return the unique identifier (guid) for the community.Return the membership type.int
hashCode()
Return hash code for this objectvoid
setCommunity
(ElementStub community) Set up the unique identifier (guid) for the community.void
setMembershipType
(CommunityMembershipType membershipType) Set up the membership type.toString()
JSON-style toStringMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonalRoleElement
getElementHeader, getProperties, getRelatedElement, setElementHeader, setProperties, setRelatedElement
-
Constructor Details
-
CommunityMembershipElement
public CommunityMembershipElement()Default constructor -
CommunityMembershipElement
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getMembershipType
Return the membership type.- Returns:
- membership type enum
-
setMembershipType
Set up the membership type.- Parameters:
membershipType
- membership type enum
-
getCommunity
Return the unique identifier (guid) for the community.- Returns:
- link to community description
-
setCommunity
Set up the unique identifier (guid) for the community.- Parameters:
community
- link to community description
-
toString
JSON-style toString- Overrides:
toString
in classPersonalRoleElement
- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equals
in classPersonalRoleElement
- Parameters:
objectToCompare
- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classPersonalRoleElement
- Returns:
- int hash code
-