|
||||||||||
| 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 Itempublic String getFormula()
getFormula in interface Itempublic String getMapTo()
getMapTo in interface Itempublic String getName()
getName in interface Itempublic boolean isReadonly()
isReadonly in interface Itempublic String getType()
getType in interface Itempublic void setComputed(boolean computed)
Item
setComputed in interface Itemcomputed - true if item must be computedpublic void setFormula(String formula)
Item
setFormula in interface Itemformula - formula of type 'action.Validation.actor'public void setMapTo(String mapTo)
Item
setMapTo in interface ItemmapTo - full user field namepublic void setName(String name)
Item
setName in interface Itemname - item 's namepublic void setReadonly(boolean readonly)
Item
setReadonly in interface Itemreadonly - true if item must be readonlypublic void setType(String type)
Item
setType in interface Itemtype - item 's type (text for text field)
public String getDescription(String role,
String language)
getDescription in interface Itemlang - description's languagerole - role for which the description is
public ContextualDesignations getDescriptions()
Item
getDescriptions in interface Itempublic void addDescription(ContextualDesignation description)
Item
addDescription in interface Itempublic Iterator<ContextualDesignation> iterateDescription()
Item
iterateDescription in interface Itempublic ContextualDesignation createDesignation()
Item
createDesignation in interface Item
public String getLabel(String role,
String language)
getLabel in interface Itemlang - label's languagerole - role for which the label is
public void addLabel(ContextualDesignation label)
Item
addLabel in interface Itempublic Iterator<ContextualDesignation> iterateLabel()
Item
iterateLabel in interface Itempublic ContextualDesignations getLabels()
Item
getLabels in interface Itempublic Parameter getParameter(String strName)
Item
getParameter in interface ItemstrName - the parameter name
public Parameter createParameter()
Item
createParameter in interface Itempublic void addParameter(Parameter parameter)
Item
addParameter in interface Itempublic Iterator<Parameter> iterateParameter()
Item
iterateParameter in interface Item
public void removeParameter(String strName)
throws WorkflowException
Item
removeParameter in interface ItemstrName - the name of the parameter
WorkflowException - when the parameter cannot be foundpublic String getKey()
getKey in interface ReferrableObjectIntfgetKey in class AbstractReferrableObjectequals,
hashCodepublic Hashtable<String,String> getKeyValuePairs()
getKeyValuePairs in interface Itempublic void setId(int id)
setId in interface AbstractDescriptorpublic int getId()
getId in interface AbstractDescriptorpublic void setParent(AbstractDescriptor parent)
setParent in interface AbstractDescriptorpublic AbstractDescriptor getParent()
getParent in interface AbstractDescriptorpublic boolean hasId()
hasId in interface AbstractDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||