Package org.forgerock.api.models
Class Parameter
java.lang.Object
org.forgerock.api.models.Parameter
Class that represents the Parameter type in API descriptor.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder to construct Parameter object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Parameter
fromAnnotation
(Class<?> type, Parameter parameter) Builds a Parameter object from the data in the annotation.Getter of the parameter's default value.Getter of the parameter description.String[]
Getter of enum-titles.String[]
Getter of required enum-values.getName()
Getter of the name of the parameter.Getter of the parameter source.getType()
Getter of the parameter type.int
hashCode()
Getter of the required property.static Parameter.Builder
New parameter builder.
-
Method Details
-
getName
Getter of the name of the parameter.- Returns:
- Parameter name
-
getType
Getter of the parameter type.- Returns:
- Parameter type
-
getDefaultValue
Getter of the parameter's default value.- Returns:
- Parameter default value
-
getDescription
Getter of the parameter description.- Returns:
- Parameter description
-
getSource
Getter of the parameter source.- Returns:
- Parameter source enum
-
isRequired
Getter of the required property.- Returns:
- Required
-
getEnumValues
Getter of required enum-values.- Returns:
- Required enum-values or
null
-
getEnumTitles
Getter of enum-titles.- Returns:
- Enum-titles or
null
-
equals
-
hashCode
public int hashCode() -
parameter
New parameter builder.- Returns:
- Builder
-
fromAnnotation
Builds a Parameter object from the data in the annotation.- Parameters:
type
- The type to resolveLocalizableString
s from.parameter
- The annotation that holds the data- Returns:
- Parameter instance
-