Class TeamMembershipElement
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonalRoleElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.TeamMembershipElement
- All Implemented Interfaces:
MetadataElement
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 Summary
ConstructorDescriptionDefault constructorTeamMembershipElement
(TeamMembershipElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.boolean
Return the properties of the userId.Return the name of the special position (if any) in the team.getTeam()
Return the unique identifier (guid) of the team.int
hashCode()
Return hash code for this objectvoid
setLeadershipRole
(boolean leadershipRole) Set up the userId properties.void
setPosition
(String position) Set up the name of the special position (if any) in the team.void
setTeam
(ElementStub team) Set up the unique identifier (guid) of the team.toString()
JSON-style toStringMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.PersonalRoleElement
getElementHeader, getProperties, getRelatedElement, setElementHeader, setProperties, setRelatedElement
-
Constructor Details
-
TeamMembershipElement
public TeamMembershipElement()Default constructor -
TeamMembershipElement
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getPosition
Return the name of the special position (if any) in the team.- Returns:
- string name
-
setPosition
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
Return the unique identifier (guid) of the team.- Returns:
- description of team profile
-
setTeam
Set up the unique identifier (guid) of the team.- Parameters:
team
- string guid
-
toString
JSON-style toString- Overrides:
toString
in classPersonalRoleElement
- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equals
in classPersonalRoleElement
- Parameters:
objectToCompare
- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classPersonalRoleElement
- Returns:
- int hash code
-