Package org.forgerock.opendj.config
Class DefinedDefaultBehaviorProvider<T>
- java.lang.Object
- 
- org.forgerock.opendj.config.DefaultBehaviorProvider<T>
- 
- org.forgerock.opendj.config.DefinedDefaultBehaviorProvider<T>
 
 
- 
- Type Parameters:
- T- The type of values represented by this provider.
 
 public final class DefinedDefaultBehaviorProvider<T> extends DefaultBehaviorProvider<T> A default behavior provider which represents a well-defined set of default values. It should be used by properties which have default value(s) which are valid value(s) according to the constraints of the property's definition.
- 
- 
Constructor SummaryConstructors Constructor Description DefinedDefaultBehaviorProvider(String... values)Create a new defined default behavior provider associated with the specified list of values.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
 Raccept(DefaultBehaviorProviderVisitor<T,R,P> v, P p)Apply a visitor to this default behavior provider.Collection<String>getDefaultValues()Get a copy of the default values.- 
Methods inherited from class org.forgerock.opendj.config.DefaultBehaviorProviderinitialize
 
- 
 
- 
- 
- 
Constructor Detail- 
DefinedDefaultBehaviorProviderpublic DefinedDefaultBehaviorProvider(String... values) Create a new defined default behavior provider associated with the specified list of values.- Parameters:
- values- The list of values (must be non-- nulland not empty) in their string representation.
- Throws:
- IllegalArgumentException- If the list of values was- nullor empty.
 
 
- 
 - 
Method Detail- 
acceptpublic <R,P> R accept(DefaultBehaviorProviderVisitor<T,R,P> v, P p) Description copied from class:DefaultBehaviorProviderApply a visitor to this default behavior provider.- Specified by:
- acceptin class- DefaultBehaviorProvider<T>
- Type Parameters:
- R- The return type of the visitor's methods.
- P- The type of the additional parameters to the visitor's methods.
- Parameters:
- v- The default behavior visitor.
- p- Optional additional visitor parameter.
- Returns:
- Returns a result as specified by the visitor.
 
 - 
getDefaultValuespublic Collection<String> getDefaultValues() Get a copy of the default values.- Returns:
- Returns a newly allocated collection containing a copy of the default values.
 
 
- 
 
-