|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.workflow.engine.AbstractReferrableObject
com.silverpeas.workflow.engine.model.RoleImpl
public class RoleImpl
Class implementing the representation of the <role> element of a Process Model.
Constructor Summary | |
---|---|
RoleImpl()
Constructor |
|
RoleImpl(String name)
Constructor |
Method Summary | |
---|---|
void |
addDescription(ContextualDesignation description)
Add a description Method needed primarily by Castor |
void |
addLabel(ContextualDesignation label)
Add a label Method needed primarily by Castor |
ContextualDesignation |
createDesignation()
Create an object implementing ContextualDesignation Method needed primarily by Castor |
String |
getDescription(String role,
String language)
Get description in specific language for the given role |
ContextualDesignations |
getDescriptions()
Get all the descriptions |
int |
getId()
|
String |
getKey()
Get the unique key, used by equals method |
String |
getLabel(String role,
String language)
Get label in specific language for the given role |
ContextualDesignations |
getLabels()
Get all the labels |
String |
getName()
Get the name of the Role |
AbstractDescriptor |
getParent()
|
boolean |
hasId()
|
Iterator<ContextualDesignation> |
iterateDescription()
Iterate through the descriptions |
Iterator<ContextualDesignation> |
iterateLabel()
Iterate through the Labels |
void |
setId(int id)
Implemented methods |
void |
setName(String name)
Set the name of the Role |
void |
setParent(AbstractDescriptor parent)
|
Methods inherited from class com.silverpeas.workflow.engine.AbstractReferrableObject |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoleImpl()
public RoleImpl(String name)
name
- role namaMethod Detail |
---|
public String getName()
getName
in interface Role
public void setName(String name)
Role
setName
in interface Role
public ContextualDesignations getLabels()
Role
getLabels
in interface Role
public String getLabel(String role, String language)
Role
getLabel
in interface Role
role
- role for which the label is
public void addLabel(ContextualDesignation label)
Role
addLabel
in interface Role
public Iterator<ContextualDesignation> iterateLabel()
Role
iterateLabel
in interface Role
public ContextualDesignations getDescriptions()
Role
getDescriptions
in interface Role
public String getDescription(String role, String language)
Role
getDescription
in interface Role
role
- role for which the description is
public void addDescription(ContextualDesignation description)
Role
addDescription
in interface Role
public Iterator<ContextualDesignation> iterateDescription()
Role
iterateDescription
in interface Role
public ContextualDesignation createDesignation()
Role
createDesignation
in interface Role
public String getKey()
getKey
in interface ReferrableObjectIntf
getKey
in class AbstractReferrableObject
equals
,
hashCode
public void setId(int id)
setId
in interface AbstractDescriptor
public int getId()
getId
in interface AbstractDescriptor
public void setParent(AbstractDescriptor parent)
setParent
in interface AbstractDescriptor
public AbstractDescriptor getParent()
getParent
in interface AbstractDescriptor
public boolean hasId()
hasId
in interface AbstractDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |