java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonalRoleElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.TeamMembershipElement
All Implemented Interfaces:
MetadataElement

public class TeamMembershipElement extends PersonalRoleElement
TeamMembershipElement contains the properties and header for a role that shows a person is a leader or a member of a team as retrieved from the metadata repository.
  • Constructor Details

    • TeamMembershipElement

      public TeamMembershipElement()
      Default constructor
    • TeamMembershipElement

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

    • getPosition

      public String getPosition()
      Return the name of the special position (if any) in the team.
      Returns:
      string name
    • setPosition

      public void setPosition(String position)
      Set up the name of the special position (if any) in the team.
      Parameters:
      position - string name
    • getLeadershipRole

      public boolean getLeadershipRole()
      Return the properties of the userId.
      Returns:
      flag
    • setLeadershipRole

      public void setLeadershipRole(boolean leadershipRole)
      Set up the userId properties.
      Parameters:
      leadershipRole - flag
    • getTeam

      public ElementStub getTeam()
      Return the unique identifier (guid) of the team.
      Returns:
      description of team profile
    • setTeam

      public void setTeam(ElementStub team)
      Set up the unique identifier (guid) of the team.
      Parameters:
      team - string guid
    • 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