Class ItemRef
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.model.ItemRef
-
- All Implemented Interfaces:
Serializable
,Column
,Input
public class ItemRef extends Object implements Input, Serializable
Class implementing the representation of the <input> element of a Process Model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemRef()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayerName()
Get name of displayer used to show the itemItem
getItem()
Get the referred itemString
getLabel(String role, String language)
Get label in specific language for the given roleContextualDesignations
getLabels()
Get all the labelsString
getValue()
Get default valueboolean
isMandatory()
Get value of mandatory attributeboolean
isReadonly()
Get value of readOnly attributevoid
setDisplayerName(String displayerName)
Set name of displayer used to show the itemvoid
setItem(Item item)
Set the referred itemvoid
setMandatory(boolean mandatory)
Set value of mandatory attributevoid
setReadonly(boolean readonly)
Set the readonly attributevoid
setValue(String value)
Set default value
-
-
-
Method Detail
-
getItem
public Item getItem()
Get the referred item
-
isReadonly
public boolean isReadonly()
Get value of readOnly attribute- Specified by:
isReadonly
in interfaceInput
- Returns:
- true if item must be readonly
-
isMandatory
public boolean isMandatory()
Get value of mandatory attribute- Specified by:
isMandatory
in interfaceInput
- Returns:
- true if item must be filled
-
getDisplayerName
public String getDisplayerName()
Get name of displayer used to show the item- Specified by:
getDisplayerName
in interfaceInput
- Returns:
- displayer name
-
getValue
public String getValue()
Get default value
-
setItem
public void setItem(Item item)
Set the referred item
-
setReadonly
public void setReadonly(boolean readonly)
Set the readonly attribute- Specified by:
setReadonly
in interfaceInput
-
setMandatory
public void setMandatory(boolean mandatory)
Set value of mandatory attribute- Specified by:
setMandatory
in interfaceInput
- Parameters:
mandatory
- true if item must be filled
-
setDisplayerName
public void setDisplayerName(String displayerName)
Set name of displayer used to show the item- Specified by:
setDisplayerName
in interfaceInput
- Parameters:
displayerName
- displayer name
-
setValue
public void setValue(String value)
Set default value
-
getLabels
public ContextualDesignations getLabels()
Description copied from interface:Input
Get all the labels
-
getLabel
public String getLabel(String role, String language)
Description copied from interface:Input
Get label in specific language for the given role- Specified by:
getLabel
in interfaceInput
- Parameters:
role
- role for which the label islanguage
- label's language- Returns:
- wanted label as a String object. If label is not found, search label with given role and default language, if not found again, return the default label in given language, if not found again, return the default label in default language, if not found again, return empty string.
-
-