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
ModifierConstructorDescriptionprotected
AbstractBuilder
(AbstractManagedObjectDefinition<?, ?> pd, String name, AbstractManagedObjectDefinition<C, S> cd) Create a property definition builder. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract D
buildInstance
(RelationDefinition.Common<C, S> common) Build a relation definition based on the properties of this builder.final D
Construct a relation definition based on the properties of this builder.final void
setOption
(RelationOption option) Add a relation definition option.
-
Constructor Details
-
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 Details
-
getInstance
Construct a relation definition based on the properties of this builder.- Returns:
- The new relation definition.
-
setOption
Add a relation definition option.- Parameters:
option
- The relation option.
-
buildInstance
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.
-