T
- Concrete parameter typepublic static final class Profile.ParameterType<T> extends Object
parameter
type.
A parameter type is defined by:
class
associated to the concrete parameter type
function
to convert a string object into the concrete parameter type
Note: this class has package private visibility only to allow static import of the pre-defined type constants to make code more readable.
Modifier and Type | Field and Description |
---|---|
static Profile.ParameterType<Boolean> |
BOOLEAN
Represents the boolean parameter type.
|
static Profile.ParameterType<Dn> |
DOMAIN
Represents the domain parameter type.
|
static Profile.ParameterType<String> |
PASSWORD
Represents the password parameter type.
|
Modifier and Type | Method and Description |
---|---|
static <T2> Profile.ParameterType<T2> |
of(String name,
Function<String,T2,com.forgerock.opendj.cli.ArgumentException> parse)
Creates and returns a new parameter type object associated to provided class.
|
String |
toString() |
public static final Profile.ParameterType<Boolean> BOOLEAN
public static final Profile.ParameterType<Dn> DOMAIN
public static final Profile.ParameterType<String> PASSWORD
public static <T2> Profile.ParameterType<T2> of(String name, Function<String,T2,com.forgerock.opendj.cli.ArgumentException> parse)
T2
- Type of the provided class objectname
- The name of the parameter typeparse
- Function
which will be use to convert a string into an object of parameter type classparameter type
objectCopyright 2010-2022 ForgeRock AS.