Class CommunityMembershipElement
java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.metadataelements.PersonalRoleElement
org.odpi.openmetadata.accessservices.communityprofile.metadataelements.CommunityMembershipElement
- All Implemented Interfaces:
Serializable,MetadataElement
CommunityMembershipElement describes an individual who is a member of a community.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStubReturn the unique identifier (guid) for the community.Return the membership type.inthashCode()Return hash code for this objectvoidsetCommunity(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub community) Set up the unique identifier (guid) for the community.voidsetMembershipType(CommunityMembershipType membershipType) Set up the membership type.toString()JSON-style toStringMethods inherited from class org.odpi.openmetadata.accessservices.communityprofile.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
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub getCommunity()Return the unique identifier (guid) for the community.- Returns:
- link to community description
-
setCommunity
public void setCommunity(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub community) Set up the unique identifier (guid) for the community.- Parameters:
community- link to community description
-
toString
JSON-style toString- Overrides:
toStringin classPersonalRoleElement- Returns:
- return string containing the property names and values
-
equals
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
-