Package org.forgerock.opendj.config
Class StringPropertyDefinition.Builder
- java.lang.Object
 - 
- org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder<String,StringPropertyDefinition>
 - 
- org.forgerock.opendj.config.StringPropertyDefinition.Builder
 
 
 
- 
- Enclosing class:
 - StringPropertyDefinition
 
public static final class StringPropertyDefinition.Builder extends PropertyDefinition.AbstractBuilder<String,StringPropertyDefinition>
An interface for incrementally constructing string property definitions. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringPropertyDefinitionbuildInstance(AbstractManagedObjectDefinition<?,?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<String>> defaultBehavior, Deprecated deprecated)Build a property definition based on the properties of this builder.voidsetCaseInsensitive(boolean value)Set a flag indicating whether values of this property are case-insensitive.voidsetPattern(String pattern, String patternUsage)Set the regular expression pattern which values of this property must match.- 
Methods inherited from class org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder
getInstance, setAdministratorAction, setDefaultBehaviorProvider, setDeprecated, setOption 
 - 
 
 - 
 
- 
- 
Method Detail
- 
setCaseInsensitive
public void setCaseInsensitive(boolean value)
Set a flag indicating whether values of this property are case-insensitive.- Parameters:
 value-trueif values are case-insensitive, orfalseotherwise.
 
- 
setPattern
public void setPattern(String pattern, String patternUsage)
Set the regular expression pattern which values of this property must match. By default there is no pattern defined.- Parameters:
 pattern- The regular expression pattern string, ornullif there is no pattern.patternUsage- A user-friendly usage string representing the pattern which can be used in error messages and help (e.g. for patterns which match a host/port combination, the usage string "HOST:PORT" would be appropriate).- Throws:
 PatternSyntaxException- If the provided regular expression pattern has an invalid syntax.
 
- 
buildInstance
protected StringPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?,?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<String>> defaultBehavior, Deprecated deprecated)
Description copied from class:PropertyDefinition.AbstractBuilderBuild a property definition based on the properties of this builder.- Specified by:
 buildInstancein classPropertyDefinition.AbstractBuilder<String,StringPropertyDefinition>- Parameters:
 d- The managed object definition associated with this property definition.propertyName- The property name.options- Options applicable to this definition.adminAction- The administrator action.defaultBehavior- The default behavior provider.deprecated- The deprecation description.- Returns:
 - The new property definition.
 
 
 - 
 
 -