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
Descriptor of a parameter checker
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The concrete class of the parameter checkerprotected I18nizableText
The parameters checker's descriptionprotected String
The parameter checker's idprotected I18nizableText
The parameter checker's labelprotected String
The path of the large iconThe configuration of the linked parametersprotected String
The path of the medium iconprotected ItemChecker
The concrete class of the parameter checker implementing the checkprotected String
The path of the small iconprotected String
The location of the parameter checkerprotected int
The order of the parameter checker. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the class of the parameter checkerRetrieves the description.getId()
Deprecated.getLabel()
Retrieves the label.Retrieves the parameter checker's iconRetrieve the path of the parameters used by the parameter checkerRetrieves the parameter checker's icongetName()
Get the name.Retrieves the parameter checker.Retrieves the parameter checker's iconGet the location of the parameter checkerint
Gets the ui order of the parameter checkervoid
Sets the class of the parameter checkervoid
setDescription
(I18nizableText description) Set the description.void
Deprecated.usesetName(String)
insteadvoid
setLabel
(I18nizableText label) Set the label.void
setLargeIconPath
(String path) Sets the icon path of the parameter checkervoid
setLinkedParamsPaths
(Set<String> linkedParamsPaths) Sets the parameters' ids used by the parameter checkervoid
setMediumIconPath
(String path) Sets the icon path of the parameter checkervoid
Set the name.void
setParameterChecker
(ItemChecker parameterChecker) Sets the parameter checkervoid
setSmallIconPath
(String path) Sets the icon path of the parameter checkervoid
setUiRefLocation
(String uiRefLocation) Set the location of the parameter checkervoid
setUiRefOrder
(int uiRefOrder) Sets the ui ordertoJSON()
Get the description information to JSON formatvoid
toSAX
(ContentHandler handler) SAX the description informationsMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_id
The parameter checker's id -
_description
The parameters checker's description -
_label
The parameter checker's label -
_smallIconPath
The path of the small icon -
_mediumIconPath
The path of the medium icon -
_largeIconPath
The path of the large icon -
_concreteClass
The concrete class of the parameter checker -
_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
The location of the parameter checker -
_linkedParamsPaths
The configuration of the linked parameters -
_parameterChecker
The concrete class of the parameter checker implementing the check
-
-
Constructor Details
-
ItemCheckerDescriptor
public ItemCheckerDescriptor()
-
-
Method Details
-
toSAX
SAX the description informations- Parameters:
handler
- The handler where to sax- Throws:
SAXException
- if an error occurred
-
toJSON
Get the description information to JSON format- Returns:
- The information as a map
-
getName
Description copied from interface:Labelable
Get the name. -
getId
Deprecated.usegetName()
insteadRetrieves the parameter checker's id- Returns:
- _id the id of the parameter checker
-
setName
Description copied from interface:ModifiableLabelable
Set the name.- Specified by:
setName
in interfaceModifiableLabelable
- Parameters:
name
- the name.
-
setId
Deprecated.usesetName(String)
insteadSets the parameter checker's id- Parameters:
id
- the id of the parameter checker
-
getLabel
Description copied from interface:Labelable
Retrieves the label. -
setLabel
Description copied from interface:ModifiableLabelable
Set the label.- Specified by:
setLabel
in interfaceModifiableLabelable
- Parameters:
label
- the label.
-
getDescription
Description copied from interface:Labelable
Retrieves the description.- Specified by:
getDescription
in interfaceLabelable
- Returns:
- the description.
-
setDescription
Description copied from interface:ModifiableLabelable
Set the description.- Specified by:
setDescription
in interfaceModifiableLabelable
- Parameters:
description
- the description.
-
getSmallIconPath
Retrieves the parameter checker's icon- Returns:
- _iconPath the path to the icon representing the parameter checker
-
setSmallIconPath
Sets the icon path of the parameter checker- Parameters:
path
- the path of the small icon
-
getMediumIconPath
Retrieves the parameter checker's icon- Returns:
- _iconPath the path to the icon representing the parameter checker
-
setMediumIconPath
Sets the icon path of the parameter checker- Parameters:
path
- the path of the medium icon
-
getLargeIconPath
Retrieves the parameter checker's icon- Returns:
- _iconPath the path to the icon representing the parameter checker
-
setLargeIconPath
Sets the icon path of the parameter checker- Parameters:
path
- the path of the large icon
-
getConcreteClass
Retrieves the class of the parameter checker- Returns:
- _concreteClass the class of the parameter checker.
-
setClass
Sets the class of the parameter checker- Parameters:
concreteClass
- the class of the parameter checker
-
getUiRefOrder
Gets the ui order of the parameter checker- Returns:
- _uiRefOrder the ui order
-
setUiRefOrder
Sets the ui order- Parameters:
uiRefOrder
- the ui order
-
getUiRefLocation
Get the location of the parameter checker- Returns:
- _uiRefOrder the ui order
-
setUiRefLocation
Set the location of the parameter checker- Parameters:
uiRefLocation
- the location of the parameter checker
-
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
Sets the parameters' ids used by the parameter checker- Parameters:
linkedParamsPaths
- the parameters' ids used by the parameter checker
-
getParameterChecker
Retrieves the parameter checker.- Returns:
- _parameterChecker the parameter checker
-
setParameterChecker
Sets the parameter checker- Parameters:
parameterChecker
- the parameter checker
-
getName()
instead