java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.metadataelements.PersonalRoleElement
org.odpi.openmetadata.accessservices.communityprofile.metadataelements.CommunityMembershipElement
All Implemented Interfaces:
MetadataElement

public class CommunityMembershipElement extends PersonalRoleElement
CommunityMembershipElement describes an individual who is a member of a community.
  • Constructor Details

    • CommunityMembershipElement

      public CommunityMembershipElement()
      Default constructor
    • CommunityMembershipElement

      public CommunityMembershipElement(CommunityMembershipElement template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • 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:
      toString in class PersonalRoleElement
      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:
      equals in class PersonalRoleElement
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class PersonalRoleElement
      Returns:
      int hash code