Package org.ametys.runtime.model.checker
Class ItemCheckerDescriptor
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.runtime.model.checker.ItemCheckerDescriptor
-
- All Implemented Interfaces:
Labelable,ModifiableLabelable,LogEnabled
- Direct Known Subclasses:
ConfigParameterCheckerDescriptor
public class ItemCheckerDescriptor extends AbstractLogEnabled implements ModifiableLabelable
Descriptor of a parameter checker
-
-
Field Summary
Fields Modifier and Type Field Description protected String_concreteClassThe concrete class of the parameter checkerprotected I18nizableText_descriptionThe parameters checker's descriptionprotected String_idThe parameter checker's idprotected I18nizableText_labelThe parameter checker's labelprotected String_largeIconPathThe path of the large iconprotected Set<String>_linkedParamsPathsThe configuration of the linked parametersprotected String_mediumIconPathThe path of the medium iconprotected ItemChecker_parameterCheckerThe concrete class of the parameter checker implementing the checkprotected String_smallIconPathThe path of the small iconprotected String_uiRefLocationThe location of the parameter checkerprotected int_uiRefOrderThe order of the parameter checker.
-
Constructor Summary
Constructors Constructor Description ItemCheckerDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetConcreteClass()Retrieves the class of the parameter checkerI18nizableTextgetDescription()Retrieves the description.StringgetId()Deprecated.usegetName()insteadI18nizableTextgetLabel()Retrieves the label.StringgetLargeIconPath()Retrieves the parameter checker's iconSet<String>getLinkedParamsPaths()Retrieve the path of the parameters used by the parameter checkerStringgetMediumIconPath()Retrieves the parameter checker's iconStringgetName()Get the name.ItemCheckergetParameterChecker()Retrieves the parameter checker.StringgetSmallIconPath()Retrieves the parameter checker's iconStringgetUiRefLocation()Get the location of the parameter checkerintgetUiRefOrder()Gets the ui order of the parameter checkervoidsetClass(String concreteClass)Sets the class of the parameter checkervoidsetDescription(I18nizableText description)Set the description.voidsetId(String id)Deprecated.usesetName(String)insteadvoidsetLabel(I18nizableText label)Set the label.voidsetLargeIconPath(String path)Sets the icon path of the parameter checkervoidsetLinkedParamsPaths(Set<String> linkedParamsPaths)Sets the parameters' ids used by the parameter checkervoidsetMediumIconPath(String path)Sets the icon path of the parameter checkervoidsetName(String name)Set the name.voidsetParameterChecker(ItemChecker parameterChecker)Sets the parameter checkervoidsetSmallIconPath(String path)Sets the icon path of the parameter checkervoidsetUiRefLocation(String uiRefLocation)Set the location of the parameter checkervoidsetUiRefOrder(int uiRefOrder)Sets the ui orderMap<String,Object>toJSON()Get the description information to JSON formatvoidtoSAX(ContentHandler handler)SAX the description informations-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_description
protected I18nizableText _description
The parameters checker's description
-
_label
protected I18nizableText _label
The parameter checker's label
-
_smallIconPath
protected String _smallIconPath
The path of the small icon
-
_mediumIconPath
protected String _mediumIconPath
The path of the medium icon
-
_largeIconPath
protected String _largeIconPath
The path of the large icon
-
_concreteClass
protected String _concreteClass
The concrete class of the parameter checker
-
_uiRefOrder
protected int _uiRefOrder
The order of the parameter checker. When several parameter checkers have the same location, the order allows to order graphically the parameter checkers: the parameter checker with the lowest order will be at the top.
-
_uiRefLocation
protected String _uiRefLocation
The location of the parameter checker
-
_linkedParamsPaths
protected Set<String> _linkedParamsPaths
The configuration of the linked parameters
-
_parameterChecker
protected ItemChecker _parameterChecker
The concrete class of the parameter checker implementing the check
-
-
Constructor Detail
-
ItemCheckerDescriptor
public ItemCheckerDescriptor()
-
-
Method Detail
-
toSAX
public void toSAX(ContentHandler handler) throws SAXException
SAX the description informations- Parameters:
handler- The handler where to sax- Throws:
SAXException- if an error occurred
-
toJSON
public Map<String,Object> toJSON()
Get the description information to JSON format- Returns:
- The information as a map
-
getId
@Deprecated public String getId()
Deprecated.usegetName()insteadRetrieves the parameter checker's id- Returns:
- _id the id of the parameter checker
-
setName
public void setName(String name)
Description copied from interface:ModifiableLabelableSet the name.- Specified by:
setNamein interfaceModifiableLabelable- Parameters:
name- the name.
-
setId
@Deprecated public void setId(String id)
Deprecated.usesetName(String)insteadSets the parameter checker's id- Parameters:
id- the id of the parameter checker
-
getLabel
public I18nizableText getLabel()
Description copied from interface:LabelableRetrieves the label.
-
setLabel
public void setLabel(I18nizableText label)
Description copied from interface:ModifiableLabelableSet the label.- Specified by:
setLabelin interfaceModifiableLabelable- Parameters:
label- the label.
-
getDescription
public I18nizableText getDescription()
Description copied from interface:LabelableRetrieves the description.- Specified by:
getDescriptionin interfaceLabelable- Returns:
- the description.
-
setDescription
public void setDescription(I18nizableText description)
Description copied from interface:ModifiableLabelableSet the description.- Specified by:
setDescriptionin interfaceModifiableLabelable- Parameters:
description- the description.
-
getSmallIconPath
public String getSmallIconPath()
Retrieves the parameter checker's icon- Returns:
- _iconPath the path to the icon representing the parameter checker
-
setSmallIconPath
public void setSmallIconPath(String path)
Sets the icon path of the parameter checker- Parameters:
path- the path of the small icon
-
getMediumIconPath
public String getMediumIconPath()
Retrieves the parameter checker's icon- Returns:
- _iconPath the path to the icon representing the parameter checker
-
setMediumIconPath
public void setMediumIconPath(String path)
Sets the icon path of the parameter checker- Parameters:
path- the path of the medium icon
-
getLargeIconPath
public String getLargeIconPath()
Retrieves the parameter checker's icon- Returns:
- _iconPath the path to the icon representing the parameter checker
-
setLargeIconPath
public void setLargeIconPath(String path)
Sets the icon path of the parameter checker- Parameters:
path- the path of the large icon
-
getConcreteClass
public String getConcreteClass()
Retrieves the class of the parameter checker- Returns:
- _concreteClass the class of the parameter checker.
-
setClass
public void setClass(String concreteClass)
Sets the class of the parameter checker- Parameters:
concreteClass- the class of the parameter checker
-
getUiRefOrder
public int getUiRefOrder()
Gets the ui order of the parameter checker- Returns:
- _uiRefOrder the ui order
-
setUiRefOrder
public void setUiRefOrder(int uiRefOrder)
Sets the ui order- Parameters:
uiRefOrder- the ui order
-
getUiRefLocation
public String getUiRefLocation()
Get the location of the parameter checker- Returns:
- _uiRefOrder the ui order
-
setUiRefLocation
public void setUiRefLocation(String uiRefLocation)
Set the location of the parameter checker- Parameters:
uiRefLocation- the location of the parameter checker
-
getLinkedParamsPaths
public Set<String> getLinkedParamsPaths()
Retrieve the path of the parameters used by the parameter checker- Returns:
- _linkedParamsPaths the paths of the parameters used by the parameter checker
-
setLinkedParamsPaths
public void setLinkedParamsPaths(Set<String> linkedParamsPaths)
Sets the parameters' ids used by the parameter checker- Parameters:
linkedParamsPaths- the parameters' ids used by the parameter checker
-
getParameterChecker
public ItemChecker getParameterChecker()
Retrieves the parameter checker.- Returns:
- _parameterChecker the parameter checker
-
setParameterChecker
public void setParameterChecker(ItemChecker parameterChecker)
Sets the parameter checker- Parameters:
parameterChecker- the parameter checker
-
-