Interface DataObjectIdentifier.Builder<T extends DataObject>
- Type Parameters:
T
- type ofDataObject
held in the last step.
- All Superinterfaces:
DataObjectReference.Builder<T>
- All Known Subinterfaces:
DataObjectIdentifier.Builder.WithKey<T,
K>
- All Known Implementing Classes:
AbstractDataObjectIdentifierBuilder
,DataObjectIdentifierBuilder
,DataObjectIdentifierBuilderWithKey
- Enclosing interface:
DataObjectIdentifier<T extends DataObject>
public static sealed interface DataObjectIdentifier.Builder<T extends DataObject>
extends DataObjectReference.Builder<T>
permits DataObjectIdentifier.Builder.WithKey<T,K>, AbstractDataObjectIdentifierBuilder<T>
A builder of
DataObjectReference
objects.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
DataObjectIdentifier.Builder.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> A builder ofDataObjectReference.WithKey
objects. -
Method Summary
Modifier and TypeMethodDescription<A extends Augmentation<? super T>>
DataObjectIdentifier.Builder<A> augmentation
(Class<A> augmentation) Update this builder to build a reference to a specific augmentation of the data object this builder currently points to.build()
Build the data object reference.<N extends EntryObject<N,
K> & ChildOf<? super T>, K extends Key<N>>
DataObjectIdentifier.Builder.WithKey<N, K> Append the specified listItem as a child of the data object this build currently references.<C extends ChoiceIn<? super T> & DataObject,
N extends ChildOf<? super C>>
DataObjectIdentifier.Builder<N> Append the specified container as a child of the data object this build currently references.<C extends ChoiceIn<? super T> & DataObject,
K extends Key<N>, N extends EntryObject<N, K> & ChildOf<? super C>>
DataObjectIdentifier.Builder.WithKey<N, K> Append the specified listItem as a child of the data object this build currently references.<N extends ChildOf<? super T>>
DataObjectIdentifier.Builder<N> Append the specified container as a child of the data object this build currently references.
-
Method Details
-
augmentation
<A extends Augmentation<? super T>> DataObjectIdentifier.Builder<A> augmentation(Class<A> augmentation) Description copied from interface:DataObjectReference.Builder
Update this builder to build a reference to a specific augmentation of the data object this builder currently points to.- Specified by:
augmentation
in interfaceDataObjectReference.Builder<T extends DataObject>
- Type Parameters:
A
- augmentation type- Parameters:
augmentation
- augmentation class- Returns:
- this builder
-
child
Description copied from interface:DataObjectReference.Builder
Append the specified container as a child of the data object this build currently references. This method should be used when you want to build an instance identifier by appending top-level elements.- Specified by:
child
in interfaceDataObjectReference.Builder<T extends DataObject>
- Type Parameters:
N
- Container type- Parameters:
container
- Container to append- Returns:
- this builder
-
child
<C extends ChoiceIn<? super T> & DataObject,N extends ChildOf<? super C>> DataObjectIdentifier.Builder<N> child(Class<C> caze, Class<N> container) Description copied from interface:DataObjectReference.Builder
Append the specified container as a child of the data object this build currently references. This method should be used when you want to build an reference by appending a container node to the identifier and thecontainer
is defined in agrouping
used in acase
statement.- Specified by:
child
in interfaceDataObjectReference.Builder<T extends DataObject>
- Type Parameters:
C
- Case typeN
- Container type- Parameters:
caze
- Choice case classcontainer
- Container to append- Returns:
- this builder
-
child
<C extends ChoiceIn<? super T> & DataObject,K extends Key<N>, DataObjectIdentifier.Builder.WithKey<N,N extends EntryObject<N, K> & ChildOf<? super C>> K> child(Class<C> caze, Class<N> listItem, K listKey) Description copied from interface:DataObjectReference.Builder
Append the specified listItem as a child of the data object this build currently references. This method should be used when you want to build a reference by appending a specific list element to the identifier and thelist
is defined in agrouping
used in acase
statement.- Specified by:
child
in interfaceDataObjectReference.Builder<T extends DataObject>
- Type Parameters:
C
- Case typeK
- Key typeN
- List type- Parameters:
caze
- Choice case classlistItem
- List to appendlistKey
- List key- Returns:
- this builder
-
child
<N extends EntryObject<N,K> & ChildOf<? super T>, DataObjectIdentifier.Builder.WithKey<N,K extends Key<N>> K> child(Class<@NonNull N> listItem, K listKey) Description copied from interface:DataObjectReference.Builder
Append the specified listItem as a child of the data object this build currently references. This method should be used when you want to build a reference by appending a specific list element to the identifier.- Specified by:
child
in interfaceDataObjectReference.Builder<T extends DataObject>
- Type Parameters:
N
- List typeK
- Key type- Parameters:
listItem
- List to appendlistKey
- List key- Returns:
- this builder
-
build
DataObjectIdentifier<T> build()Description copied from interface:DataObjectReference.Builder
Build the data object reference.- Specified by:
build
in interfaceDataObjectReference.Builder<T extends DataObject>
- Returns:
- resulting
DataObjectReference
.
-