Class CommunityMembershipElement
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.metadataelements.PersonalRoleElement
-
- org.odpi.openmetadata.accessservices.communityprofile.metadataelements.CommunityMembershipElement
-
- All Implemented Interfaces:
Serializable,MetadataElement
public class CommunityMembershipElement extends PersonalRoleElement
CommunityMembershipElement describes an individual who is a member of a community.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommunityMembershipElement()Default constructorCommunityMembershipElement(CommunityMembershipElement template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.ElementStubgetCommunity()Return the unique identifier (guid) for the community.CommunityMembershipTypegetMembershipType()Return the membership type.inthashCode()Return hash code for this objectvoidsetCommunity(ElementStub community)Set up the unique identifier (guid) for the community.voidsetMembershipType(CommunityMembershipType membershipType)Set up the membership type.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.metadataelements.PersonalRoleElement
getElementHeader, getProperties, setElementHeader, setProperties
-
-
-
-
Constructor Detail
-
CommunityMembershipElement
public CommunityMembershipElement()
Default constructor
-
CommunityMembershipElement
public CommunityMembershipElement(CommunityMembershipElement template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getMembershipType
public CommunityMembershipType getMembershipType()
Return the membership type.- Returns:
- membership type enum
-
setMembershipType
public void setMembershipType(CommunityMembershipType membershipType)
Set up the membership type.- Parameters:
membershipType- membership type enum
-
getCommunity
public ElementStub getCommunity()
Return the unique identifier (guid) for the community.- Returns:
- link to community description
-
setCommunity
public void setCommunity(ElementStub community)
Set up the unique identifier (guid) for the community.- Parameters:
community- link to community description
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classPersonalRoleElement- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classPersonalRoleElement- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classPersonalRoleElement- Returns:
- int hash code
-
-