| java.lang.Object | |
| ↳ | com.atlassian.confluence.macro.params.BaseParameter<T> |
Known Direct Subclasses
|
Known Indirect Subclasses
|
A base implementation of Parameter, providing support
for multiple default parameter names, and a default value if
no parameter is specified.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| shouldValidate | |||||||||||
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
since 3.1: this class is not thread safe and should not be mutated
| |||||||||||
Attempts to find the value from the specified
MacroExecutionContext object. | |||||||||||
Returns the default value for this parameter if no match is found in
the context.
| |||||||||||
Returns the literal value of the parameter, or the default value if
none is present.
| |||||||||||
This method is deprecated.
since 3.1: this class is not thread safe and should not be mutated
| |||||||||||
This method is deprecated.
since 3.1: this class is not thread safe and should not be mutated
| |||||||||||
Sets whether this parameter should attempt to validate its values.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Responsible for converting a macro parameter string value to its proper object representation (say "1" to new Integer(1))
| |||||||||||
Returns the literal value of the parameter in the specified
Map, using the specified List for names and
aliases and the specified default value. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.macro.params.Parameter
| |||||||||||
This method is deprecated.
since 3.1: this class is not thread safe and should not be mutated
Adds the specified String as an alias to the default name of this parameter.
| name | another name for the parameter recognized by this object |
|---|
Attempts to find the value from the specified
MacroExecutionContext object.
| ctx | The execution context for the macro. |
|---|
| ParameterException |
|---|
Returns the default value for this parameter if no match is found in the context.
Returns the literal value of the parameter, or the default value if none is present.
| params | the Map of parameters to search |
|---|
This method is deprecated.
since 3.1: this class is not thread safe and should not be mutated
Sets the default value to be returned for this parameter if no match is found in the context.
| defaultValue | the default value for this parameter |
|---|
This method is deprecated.
since 3.1: this class is not thread safe and should not be mutated
Sets the specified String array as the names by which to recognize this parameter.
| names | the names of the parameter to recognize |
|---|
Sets whether this parameter should attempt to validate its values.
| shouldValidate | true if this parameter should attempt to validate |
|---|
Responsible for converting a macro parameter string value to its proper object representation (say "1" to new Integer(1))
| ParameterException |
|---|
Returns the literal value of the parameter in the specified
Map, using the specified List for names and
aliases and the specified default value.
| params | the Map of parameters to search |
|---|---|
| names | the parameter names to look for |
| defaultValue | the default value to return if no match is found |