Class Parameter
- java.lang.Object
-
- org.silverpeas.core.admin.component.model.Parameter
-
public class Parameter extends Object
Instance parameter defined for an application component. An instance parameter is a parameter used to configure the behavior of an instance of the application. The description of the parameter indicates how it should be rendered to the administrators, how it can be valued, and, optionally, what are these possible values.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>
help
protected Map<String,String>
label
protected boolean
mandatory
protected String
name
protected List<Option>
options
protected int
order
protected String
personalSpaceValue
protected Integer
size
protected String
type
protected String
updatable
protected String
value
protected Warning
warning
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
getHelp()
Gets the value of the help property.protected Map<String,String>
getLabel()
Gets the value of the label property.String
getName()
Gets the value of the name property.List<Option>
getOptions()
Gets the possible options of this parameter.int
getOrder()
Gets the value of the order property.String
getPersonalSpaceValue()
Gets the value of the personalSpaceValue property.Integer
getSize()
Gets the value of the size property.String
getType()
Gets the value of the type property.String
getUpdatable()
Gets the value of the updatable property.String
getValue()
Gets the value of the value property.Optional<Warning>
getWarning()
Gets the warning data.boolean
isAlwaysUpdatable()
boolean
isCheckbox()
boolean
isHidden()
boolean
isMandatory()
Gets the value of the mandatory property.boolean
isNeverUpdatable()
boolean
isRadio()
boolean
isSelect()
boolean
isText()
boolean
isUpdatableOnCreationOnly()
boolean
isVisible()
boolean
isXmlTemplate()
void
putHelp(String language, String help)
Puts a localized help directly linked to theParameter
instance.void
putLabel(String language, String label)
Puts a localized label directly linked to theParameter
instance.void
setMandatory(boolean value)
Sets the value of the mandatory property.void
setName(String value)
Sets the value of the name property.void
setOptions(List<Option> options)
void
setOrder(int value)
Sets the value of the order property.void
setPersonalSpaceValue(String value)
Sets the value of the personalSpaceValue property.void
setSize(Integer value)
Sets the value of the size property.void
setType(String value)
Sets the value of the type property.void
setUpdatable(String value)
Sets the value of the updatable property.void
setValue(String value)
Sets the value of the value property.void
setWarning(Warning warning)
Sets the value of the warning property.
-
-
-
Field Detail
-
name
protected String name
-
order
protected int order
-
mandatory
protected boolean mandatory
-
value
protected String value
-
type
protected String type
-
size
protected Integer size
-
updatable
protected String updatable
-
warning
protected Warning warning
-
personalSpaceValue
protected String personalSpaceValue
-
-
Constructor Detail
-
Parameter
public Parameter()
-
Parameter
public Parameter(Parameter param)
Constructs a new parameter by copying the specified one.- Parameters:
param
- the paramater to copy.
-
-
Method Detail
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value
- allowed object isString
-
getLabel
protected Map<String,String> getLabel()
Gets the value of the label property.- Returns:
- possible object is
Multilang
-
putLabel
public void putLabel(String language, String label)
Puts a localized label directly linked to theParameter
instance.- Parameters:
language
- the language the label is localized into.label
- a localized label.
-
getOrder
public int getOrder()
Gets the value of the order property.
-
setOrder
public void setOrder(int value)
Sets the value of the order property.
-
isMandatory
public boolean isMandatory()
Gets the value of the mandatory property.
-
setMandatory
public void setMandatory(boolean value)
Sets the value of the mandatory property.
-
getValue
public String getValue()
Gets the value of the value property.- Returns:
- possible object is
String
-
setValue
public void setValue(String value)
Sets the value of the value property.- Parameters:
value
- allowed object isString
-
getOptions
public List<Option> getOptions()
Gets the possible options of this parameter.This accessor method returns a reference to the live list, not a snapshot. Therefore, any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
set
method for the options.For example, to add a new item, do as follows:
getOptions().add(newItem);
-
getType
public String getType()
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
public void setType(String value)
Sets the value of the type property.- Parameters:
value
- allowed object isString
-
getSize
public Integer getSize()
Gets the value of the size property.- Returns:
- possible object is
Integer
-
setSize
public void setSize(Integer value)
Sets the value of the size property.- Parameters:
value
- allowed object isInteger
-
getUpdatable
public String getUpdatable()
Gets the value of the updatable property.- Returns:
- possible object is
String
-
setUpdatable
public void setUpdatable(String value)
Sets the value of the updatable property.- Parameters:
value
- allowed object isString
-
getHelp
protected Map<String,String> getHelp()
Gets the value of the help property.- Returns:
- possible object is
Multilang
-
putHelp
public void putHelp(String language, String help)
Puts a localized help directly linked to theParameter
instance.- Parameters:
language
- the language the help is localized into.help
- a localized help.
-
getWarning
public Optional<Warning> getWarning()
Gets the warning data.- Returns:
Warning
if any, null otherwise.
-
setWarning
public void setWarning(Warning warning)
Sets the value of the warning property.- Parameters:
warning
- allowed object isWarning
-
getPersonalSpaceValue
public String getPersonalSpaceValue()
Gets the value of the personalSpaceValue property.- Returns:
- possible object is
String
-
setPersonalSpaceValue
public void setPersonalSpaceValue(String value)
Sets the value of the personalSpaceValue property.- Parameters:
value
- allowed object isString
-
isVisible
public boolean isVisible()
-
isHidden
public boolean isHidden()
-
isUpdatableOnCreationOnly
public boolean isUpdatableOnCreationOnly()
-
isAlwaysUpdatable
public boolean isAlwaysUpdatable()
-
isNeverUpdatable
public boolean isNeverUpdatable()
-
isText
public boolean isText()
-
isCheckbox
public boolean isCheckbox()
-
isRadio
public boolean isRadio()
-
isSelect
public boolean isSelect()
-
isXmlTemplate
public boolean isXmlTemplate()
-
-