|
||||||||||
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.ItemImpl
public class ItemImpl
Class implementing the representation of the <item> element of a Process Model.
Constructor Summary | |
---|---|
ItemImpl()
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 |
void |
addParameter(Parameter parameter)
Add a Parameter to the collection |
ContextualDesignation |
createDesignation()
Create an object implementing ContextualDesignation Method needed primarily by Castor |
Parameter |
createParameter()
Create an object implementing Parameter |
String |
getDescription(String role,
String language)
Get description in specific language for the given role |
ContextualDesignations |
getDescriptions()
Get all the descriptions |
String |
getFormula()
Get formula to use if item must be computed |
int |
getId()
|
String |
getKey()
Get the unique key, used by equals method |
Hashtable<String,String> |
getKeyValuePairs()
|
String |
getLabel(String role,
String language)
Get label in specific language for the given role |
ContextualDesignations |
getLabels()
Get all the labels |
String |
getMapTo()
Get the full user field name, to which this item is map |
String |
getName()
Get the name of this item |
Parameter |
getParameter(String strName)
Get the parameter specified by name |
AbstractDescriptor |
getParent()
|
String |
getType()
Get the type of this item |
boolean |
hasId()
|
boolean |
isComputed()
Get value of computed attribute |
boolean |
isReadonly()
Get value of readOnly attribute |
Iterator<ContextualDesignation> |
iterateDescription()
Iterate through the descriptions |
Iterator<ContextualDesignation> |
iterateLabel()
Iterate through the Labels |
Iterator<Parameter> |
iterateParameter()
Return an Iterator over the parameters collection |
void |
removeParameter(String strName)
Remove the parameter specified by its name |
void |
setComputed(boolean computed)
Set value of computed attribute |
void |
setFormula(String formula)
Set formula to use if item must be computed |
void |
setId(int id)
|
void |
setMapTo(String mapTo)
Set the full user field name, to which this item is map |
void |
setName(String name)
Set the name of this item |
void |
setParent(AbstractDescriptor parent)
|
void |
setReadonly(boolean readonly)
Set value of readOnly attribute |
void |
setType(String type)
Set the type of this item |
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 ItemImpl()
Method Detail |
---|
public boolean isComputed()
isComputed
in interface Item
public String getFormula()
getFormula
in interface Item
public String getMapTo()
getMapTo
in interface Item
public String getName()
getName
in interface Item
public boolean isReadonly()
isReadonly
in interface Item
public String getType()
getType
in interface Item
public void setComputed(boolean computed)
Item
setComputed
in interface Item
computed
- true if item must be computedpublic void setFormula(String formula)
Item
setFormula
in interface Item
formula
- formula of type 'action.Validation.actor'public void setMapTo(String mapTo)
Item
setMapTo
in interface Item
mapTo
- full user field namepublic void setName(String name)
Item
setName
in interface Item
name
- item 's namepublic void setReadonly(boolean readonly)
Item
setReadonly
in interface Item
readonly
- true if item must be readonlypublic void setType(String type)
Item
setType
in interface Item
type
- item 's type (text for text field)public String getDescription(String role, String language)
getDescription
in interface Item
lang
- description's languagerole
- role for which the description is
public ContextualDesignations getDescriptions()
Item
getDescriptions
in interface Item
public void addDescription(ContextualDesignation description)
Item
addDescription
in interface Item
public Iterator<ContextualDesignation> iterateDescription()
Item
iterateDescription
in interface Item
public ContextualDesignation createDesignation()
Item
createDesignation
in interface Item
public String getLabel(String role, String language)
getLabel
in interface Item
lang
- label's languagerole
- role for which the label is
public void addLabel(ContextualDesignation label)
Item
addLabel
in interface Item
public Iterator<ContextualDesignation> iterateLabel()
Item
iterateLabel
in interface Item
public ContextualDesignations getLabels()
Item
getLabels
in interface Item
public Parameter getParameter(String strName)
Item
getParameter
in interface Item
strName
- the parameter name
public Parameter createParameter()
Item
createParameter
in interface Item
public void addParameter(Parameter parameter)
Item
addParameter
in interface Item
public Iterator<Parameter> iterateParameter()
Item
iterateParameter
in interface Item
public void removeParameter(String strName) throws WorkflowException
Item
removeParameter
in interface Item
strName
- the name of the parameter
WorkflowException
- when the parameter cannot be foundpublic String getKey()
getKey
in interface ReferrableObjectIntf
getKey
in class AbstractReferrableObject
equals
,
hashCode
public Hashtable<String,String> getKeyValuePairs()
getKeyValuePairs
in interface Item
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 |