Class ActionModelImpl
java.lang.Object
ch.tocco.nice2.model.base.api.actions.ActionModelImpl
- All Implemented Interfaces:
ActionModel
I need the class in the API because the FormFacade must be able to create one.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getGroup()
getLabel()
getName()
@Nullable Integer
getOrder()
@Nullable Pattern
boolean
matchesComponent
(String componentType) Tells if the model matches the expected component Type.boolean
matchesPattern
(String formName) Tells if the given formName matches the required pattern.boolean
matchesScope
(String scope) Tells if the given scope matches the scopes for which this action is.
-
Field Details
-
name
-
action
-
pattern
-
scopes
-
component
-
group
-
order
-
label
-
-
Constructor Details
-
ActionModelImpl
-
-
Method Details
-
matchesPattern
Description copied from interface:ActionModel
Tells if the given formName matches the required pattern. If there is no pattern in use then everything matches.- Specified by:
matchesPattern
in interfaceActionModel
-
matchesScope
Description copied from interface:ActionModel
Tells if the given scope matches the scopes for which this action is. If no scopes were configured then all match.- Specified by:
matchesScope
in interfaceActionModel
-
matchesComponent
Tells if the model matches the expected component Type.- Specified by:
matchesComponent
in interfaceActionModel
- Parameters:
componentType
- For example "form" or "template".
-
getName
- Specified by:
getName
in interfaceActionModel
-
getAction
- Specified by:
getAction
in interfaceActionModel
-
getPattern
- Specified by:
getPattern
in interfaceActionModel
-
getScopes
- Specified by:
getScopes
in interfaceActionModel
-
getGroup
- Specified by:
getGroup
in interfaceActionModel
-
getOrder
- Specified by:
getOrder
in interfaceActionModel
-
getLabel
- Specified by:
getLabel
in interfaceActionModel
-