Modifier | Constructor and Description |
---|---|
protected |
RoleUnit(OrgStructModule module,
Map<String,String> metadata,
String name,
String... parameterNames)
Create new
RoleUnit instance with given name of the role or the organization unit. |
Modifier and Type | Method and Description |
---|---|
RoleUnit |
addChild(RoleUnit child)
Adds given
child into the children of this role or organization unit and returns
current RoleUnit instance. |
RoleUnit |
addParent(RoleUnit parent)
Adds given
parent into the parents of this role or organization unit and returns
current RoleUnit instance. |
boolean |
equals(Object object) |
Collection<RoleUnit> |
getChildren()
Returns a collection of children of this role or organization unit.
|
RoleUnitName |
getFullName()
Returns the
full name of this role or organization unit. |
Map<String,String> |
getMetadata()
Returns metadata.
|
OrgStructModule |
getModule()
Returns the name of the module this role or organization unit belongs to.
|
Set<String> |
getParameterNames()
Returns a set of parameter names belonging to this role or organization unit.
|
Collection<RoleUnit> |
getParents()
Returns a collection of parents of this role or organization unit.
|
int |
hashCode() |
String |
toString() |
protected RoleUnit(OrgStructModule module, Map<String,String> metadata, String name, String... parameterNames)
RoleUnit
instance with given name of the role or the organization unit.module
- The name of the module this role or organization unit belongs to. Cannot be
null
.metadata
- name
- The name of the role or the organization unit. Cannot be null
.parameterNames
- The names of parameters of the role or the organization unit.public OrgStructModule getModule()
public RoleUnitName getFullName()
full name
of this role or organization unit.full name
of this role or organization unit.public Set<String> getParameterNames()
public Collection<RoleUnit> getParents()
public RoleUnit addParent(RoleUnit parent)
parent
into the parents of this role or organization unit and returns
current RoleUnit
instance.parent
- The role or the organization unit to add into the parents of this role or
organization unit.RoleUnit
instance.public Collection<RoleUnit> getChildren()
public RoleUnit addChild(RoleUnit child)
child
into the children of this role or organization unit and returns
current RoleUnit
instance.child
- The role or the organization unit to add into the children of this role or
organization unit.RoleUnit
instance.public String toString()
toString
in class com.whitestein.lsps.model.AbstractModelElement
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.