Package org.togglz.core.activation
Interface Parameter
- All Known Implementing Classes:
ParameterBuilder
public interface Parameter
A parameter used to configure an
ActivationStrategy. Users can either use ParameterBuilder for creating a
parameter using a fluent API or implement the interface directly.- Author:
- Christian Kaltepoth
-
Method Summary
Modifier and TypeMethodDescriptionAn optional description of the parameter.getLabel()A human readable label that describes the parameter.getName()The name of the parameter.booleanReturnstrueif the parameter value is typically large so that it should be displayed with an textarea instead of a simple text input field.booleanReturnstrueif the parameter is optional.booleanThis method allows to implement custom validation logic for the parameter.
-
Method Details
-
getName
String getName()The name of the parameter. This name is used to store and retrieve the parameter from theFeatureState. -
getLabel
String getLabel()A human readable label that describes the parameter. -
getDescription
String getDescription()An optional description of the parameter. Can returnnull, if no description exists. -
isOptional
boolean isOptional()Returnstrueif the parameter is optional. -
isLargeText
boolean isLargeText()Returnstrueif the parameter value is typically large so that it should be displayed with an textarea instead of a simple text input field. -
isValid
This method allows to implement custom validation logic for the parameter.
-