Class AbstractDataObjectIdentifierBuilder<T extends DataObject>
java.lang.Object
org.opendaylight.yangtools.binding.impl.AbstractDataObjectReferenceBuilder<T>
org.opendaylight.yangtools.binding.impl.AbstractDataObjectIdentifierBuilder<T>
- All Implemented Interfaces:
DataObjectIdentifier.Builder<T>
,DataObjectReference.Builder<T>
- Direct Known Subclasses:
DataObjectIdentifierBuilder
,DataObjectIdentifierBuilderWithKey
public abstract sealed class AbstractDataObjectIdentifierBuilder<T extends DataObject>
extends AbstractDataObjectReferenceBuilder<T>
implements DataObjectIdentifier.Builder<T>
permits DataObjectIdentifierBuilder<T>, DataObjectIdentifierBuilderWithKey<T,K>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.binding.DataObjectIdentifier.Builder
DataObjectIdentifier.Builder.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> Nested classes/interfaces inherited from interface org.opendaylight.yangtools.binding.DataObjectReference.Builder
DataObjectReference.Builder.WithKey<T extends EntryObject<T,
K>, K extends Key<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <X extends DataObject>
DataObjectIdentifier.Builder<X> append
(DataObjectStep<X> step) protected abstract <X extends EntryObject<X,
Y>, Y extends Key<X>>
DataObjectIdentifier.Builder.WithKey<X, Y> protected final void
appendItem
(InexactDataObjectStep<?> item) <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.<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.<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.Methods inherited from class org.opendaylight.yangtools.binding.impl.AbstractDataObjectReferenceBuilder
appendItem, appendItem, build, buildSteps, wildcard
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.binding.DataObjectIdentifier.Builder
build
-
Method Details
-
augmentation
public <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 interfaceDataObjectIdentifier.Builder<T extends DataObject>
- Specified by:
augmentation
in interfaceDataObjectReference.Builder<T extends DataObject>
- Overrides:
augmentation
in classAbstractDataObjectReferenceBuilder<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 interfaceDataObjectIdentifier.Builder<T extends DataObject>
- Specified by:
child
in interfaceDataObjectReference.Builder<T extends DataObject>
- Overrides:
child
in classAbstractDataObjectReferenceBuilder<T extends DataObject>
- Type Parameters:
N
- Container type- Parameters:
container
- Container to append- Returns:
- this builder
-
child
public <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 interfaceDataObjectIdentifier.Builder<T extends DataObject>
- Specified by:
child
in interfaceDataObjectReference.Builder<T extends DataObject>
- Overrides:
child
in classAbstractDataObjectReferenceBuilder<T extends DataObject>
- Type Parameters:
C
- Case typeN
- Container type- Parameters:
caze
- Choice case classcontainer
- Container to append- Returns:
- this builder
-
child
public <N extends EntryObject<N,K> & ChildOf<? super T>, DataObjectIdentifier.Builder.WithKey<N,K extends Key<N>> K> child(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.- Specified by:
child
in interfaceDataObjectIdentifier.Builder<T extends DataObject>
- Specified by:
child
in interfaceDataObjectReference.Builder<T extends DataObject>
- Overrides:
child
in classAbstractDataObjectReferenceBuilder<T extends DataObject>
- Type Parameters:
N
- List typeK
- Key type- Parameters:
listItem
- List to appendlistKey
- List key- Returns:
- this builder
-
child
public <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 interfaceDataObjectIdentifier.Builder<T extends DataObject>
- Specified by:
child
in interfaceDataObjectReference.Builder<T extends DataObject>
- Overrides:
child
in classAbstractDataObjectReferenceBuilder<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
-
appendItem
- Overrides:
appendItem
in classAbstractDataObjectReferenceBuilder<T extends DataObject>
-
append
protected abstract <X extends DataObject> DataObjectIdentifier.Builder<X> append(DataObjectStep<X> step) - Specified by:
append
in classAbstractDataObjectReferenceBuilder<T extends DataObject>
-
append
protected abstract <X extends EntryObject<X,Y>, DataObjectIdentifier.Builder.WithKey<X,Y extends Key<X>> Y> append(KeyStep<Y, X> step) - Specified by:
append
in classAbstractDataObjectReferenceBuilder<T extends DataObject>
-