Package org.forgerock.opendj.config
Class PathPropertyDefinition.Builder
java.lang.Object
org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder<Path,PathPropertyDefinition>
org.forgerock.opendj.config.PathPropertyDefinition.Builder
- Enclosing class:
- PathPropertyDefinition
public static final class PathPropertyDefinition.Builder
extends PropertyDefinition.AbstractBuilder<Path,PathPropertyDefinition>
An interface for incrementally constructing
PathPropertyDefinition.-
Method Summary
Modifier and TypeMethodDescriptionprotected PathPropertyDefinitionbuildInstance(AbstractManagedObjectDefinition<?, ?> definition, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<Path>> defaultBehavior, Deprecated deprecated) Build a property definition based on the properties of this builder.voidsetDirectory(boolean value) Set a flag indicating whether values of this property represent a directory or a file.Methods inherited from class org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder
getInstance, setAdministratorAction, setDefaultBehaviorProvider, setDeprecated, setOption
-
Method Details
-
setDirectory
public void setDirectory(boolean value) Set a flag indicating whether values of this property represent a directory or a file.- Parameters:
value-trueif values represent a directory, orfalseif values represent a file.
-
buildInstance
protected PathPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?, ?> definition, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<Path>> defaultBehavior, Deprecated deprecated) Description copied from class:PropertyDefinition.AbstractBuilderBuild a property definition based on the properties of this builder.- Specified by:
buildInstancein classPropertyDefinition.AbstractBuilder<Path,PathPropertyDefinition> - Parameters:
definition- 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.
-