Package org.forgerock.opendj.setup.model
Interface Profile.ParameterVisitor<R,P,E extends Exception>
-
- Type Parameters:
R
- The return type of this visitor's methods. UseVoid
for visitors that do not need to return results.P
- The type of the additional parameter to this visitor's methods. UseVoid
for visitors that do not need an additional parameter.E
- The type of the exception thrown by the visitor method if it fails, orNeverThrowsException
if the visitor cannot fail.
- Enclosing class:
- Profile
public static interface Profile.ParameterVisitor<R,P,E extends Exception>
A visitor ofparameters
, in the style of the visitor design pattern.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
visitParameter(P p, Profile.DnParameter dnParameter)
Visits a DN parameter.R
visitParameter(P p, Profile.DomainParameter domainParameter)
Visits a domain parameter.R
visitParameter(P p, Profile.EnumParameter<?> enumParameter)
Visits an enum parameter.R
visitParameter(P p, Profile.HostPortParameter hostPortParameter)
Visits an host and port parameter.R
visitParameter(P p, Profile.NumberParameter<?> numberParameter)
Visits a number parameter.R
visitParameter(P p, Profile.PasswordParameter passwordParameter)
Visits a password parameter.R
visitParameter(P p, Profile.PathParameter pathParameter)
Visits a path parameter.R
visitParameter(P p, Profile.StringParameter stringParameter)
Visits a string parameter.
-
-
-
Method Detail
-
visitParameter
R visitParameter(P p, Profile.DnParameter dnParameter) throws E extends Exception
Visits a DN parameter.- Parameters:
p
- A visitor specified parameterdnParameter
- TheDN parameter
- Returns:
- A visitor specified result
- Throws:
E
- If the visitor failedE extends Exception
-
visitParameter
R visitParameter(P p, Profile.DomainParameter domainParameter) throws E extends Exception
Visits a domain parameter.- Parameters:
p
- A visitor specified parameterdomainParameter
- Thedomain parameter
- Returns:
- A visitor specified result
- Throws:
E
- If the visitor failedE extends Exception
-
visitParameter
R visitParameter(P p, Profile.EnumParameter<?> enumParameter) throws E extends Exception
Visits an enum parameter.- Parameters:
p
- A visitor specified parameterenumParameter
- Theenum parameter
- Returns:
- A visitor specified result
- Throws:
E
- If the visitor failedE extends Exception
-
visitParameter
R visitParameter(P p, Profile.HostPortParameter hostPortParameter) throws E extends Exception
Visits an host and port parameter.- Parameters:
p
- A visitor specified parameterhostPortParameter
- Thehost and port parameter
- Returns:
- A visitor specified result
- Throws:
E
- If the visitor failedE extends Exception
-
visitParameter
R visitParameter(P p, Profile.NumberParameter<?> numberParameter) throws E extends Exception
Visits a number parameter.- Parameters:
p
- A visitor specified parameternumberParameter
- Thenumber parameter
- Returns:
- A visitor specified result
- Throws:
E
- If the visitor failedE extends Exception
-
visitParameter
R visitParameter(P p, Profile.PathParameter pathParameter) throws E extends Exception
Visits a path parameter.- Parameters:
p
- A visitor specified parameterpathParameter
- Thepath parameter
- Returns:
- A visitor specified result
- Throws:
E
- If the visitor failedE extends Exception
-
visitParameter
R visitParameter(P p, Profile.PasswordParameter passwordParameter) throws E extends Exception
Visits a password parameter.- Parameters:
p
- A visitor specified parameterpasswordParameter
- Thepassword parameter
- Returns:
- A visitor specified result
- Throws:
E
- If the visitor failedE extends Exception
-
visitParameter
R visitParameter(P p, Profile.StringParameter stringParameter) throws E extends Exception
Visits a string parameter.- Parameters:
p
- A visitor specified parameterstringParameter
- Thestring parameter
- Returns:
- A visitor specified result
- Throws:
E
- If the visitor failedE extends Exception
-
-