Package org.forgerock.opendj.config
Class RelationDefinition.AbstractBuilder<C extends ConfigurationClient,S extends Configuration,D extends RelationDefinition<C,S>>
- java.lang.Object
-
- org.forgerock.opendj.config.RelationDefinition.AbstractBuilder<C,S,D>
-
- Type Parameters:
C
- The type of client managed object configuration that this relation definition refers to.S
- The type of server managed object configuration that this relation definition refers to.D
- The type of relation definition constructed by this builder.
- Direct Known Subclasses:
InstantiableRelationDefinition.Builder
,OptionalRelationDefinition.Builder
,SetRelationDefinition.Builder
,SingletonRelationDefinition.Builder
- Enclosing class:
- RelationDefinition<C extends ConfigurationClient,S extends Configuration>
protected abstract static class RelationDefinition.AbstractBuilder<C extends ConfigurationClient,S extends Configuration,D extends RelationDefinition<C,S>> extends Object
An interface for incrementally constructing relation definitions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBuilder(AbstractManagedObjectDefinition<?,?> pd, String name, AbstractManagedObjectDefinition<C,S> cd)
Create a property definition builder.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract D
buildInstance(RelationDefinition.Common<C,S> common)
Build a relation definition based on the properties of this builder.D
getInstance()
Construct a relation definition based on the properties of this builder.void
setOption(RelationOption option)
Add a relation definition option.
-
-
-
Constructor Detail
-
AbstractBuilder
protected AbstractBuilder(AbstractManagedObjectDefinition<?,?> pd, String name, AbstractManagedObjectDefinition<C,S> cd)
Create a property definition builder.- Parameters:
pd
- The parent managed object definition.name
- The name of the relation.cd
- The child managed object definition.
-
-
Method Detail
-
getInstance
public final D getInstance()
Construct a relation definition based on the properties of this builder.- Returns:
- The new relation definition.
-
setOption
public final void setOption(RelationOption option)
Add a relation definition option.- Parameters:
option
- The relation option.
-
buildInstance
protected abstract D buildInstance(RelationDefinition.Common<C,S> common)
Build a relation definition based on the properties of this builder.- Parameters:
common
- The common fields of the new relation definition.- Returns:
- The new relation definition.
-
-