Class GovernanceRoleProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.PersonRoleProperties
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceRoleProperties
-
- All Implemented Interfaces:
Serializable
public class GovernanceRoleProperties extends PersonRoleProperties
The GovernanceRoleProperties describes a role within the governance program. Initially, the role is defined and then a person is assigned to the role.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GovernanceRoleProperties()Default ConstructorGovernanceRoleProperties(GovernanceRoleProperties template)Copy/clone Constructor - the resulting object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.intgetHeadCount()Return the number of people that can be appointed to this role.inthashCode()Return has code based on properties.voidsetHeadCount(int headCount)Set up the number of people that can be appointed to this role.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.properties.PersonRoleProperties
getAdditionalProperties, getDescription, getDomainIdentifier, getExtendedProperties, getRoleId, getScope, getTitle, getTypeName, setAdditionalProperties, setDescription, setDomainIdentifier, setExtendedProperties, setRoleId, setScope, setTitle, setTypeName
-
-
-
-
Constructor Detail
-
GovernanceRoleProperties
public GovernanceRoleProperties()
Default Constructor
-
GovernanceRoleProperties
public GovernanceRoleProperties(GovernanceRoleProperties template)
Copy/clone Constructor - the resulting object.- Parameters:
template- object being copied
-
-
Method Detail
-
getHeadCount
public int getHeadCount()
Return the number of people that can be appointed to this role.- Returns:
- int
-
setHeadCount
public void setHeadCount(int headCount)
Set up the number of people that can be appointed to this role.- Parameters:
headCount- int
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classPersonRoleProperties- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classPersonRoleProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return has code based on properties.- Overrides:
hashCodein classPersonRoleProperties- Returns:
- int
-
-