Class CommunityMembershipProperties

java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.communities.CommunityMembershipProperties

public class CommunityMembershipProperties extends RelationshipProperties
CommunityMembershipProperties provides a details of the purpose (and privileges) of the membership role.
  • Constructor Details

    • CommunityMembershipProperties

      public CommunityMembershipProperties()
      Default constructor
    • CommunityMembershipProperties

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

    • getMembershipType

      public CommunityMembershipType getMembershipType()
      Return the membership type.
      Returns:
      membership type
    • setMembershipType

      public void setMembershipType(CommunityMembershipType membershipType)
      Set up the membership type.
      Parameters:
      membershipType - membership type
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class RelationshipProperties
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class RelationshipProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class RelationshipProperties
      Returns:
      int