public class SrcBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Src>
SrcBuilder instances. Overall design of the class is that of a
fluent interface, where method chaining is used.
In general, this class is supposed to be used like this template:
SrcBuilder createTarget(int fooXyzzy, int barBaz) {
return new SrcBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SrcBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
build(), which is then returned from the methodSrcBuilder,
Builder| Constructor and Description |
|---|
SrcBuilder() |
SrcBuilder(Src base) |
SrcBuilder(SrcChoiceGrouping arg) |
| Modifier and Type | Method and Description |
|---|---|
SrcBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Src>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Src> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Src>> |
augmentation(Class<E$$> augmentationType) |
Src |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Integer |
getOfsNbits() |
SrcChoice |
getSrcChoice() |
SrcBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Src>> augmentationType) |
SrcBuilder |
setOfsNbits(Integer value) |
SrcBuilder |
setSrcChoice(SrcChoice value) |
public SrcBuilder()
public SrcBuilder(SrcChoiceGrouping arg)
public SrcBuilder(Src base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Integer getOfsNbits()
public SrcChoice getSrcChoice()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Src>> E$$ augmentation(Class<E$$> augmentationType)
public SrcBuilder setOfsNbits(Integer value)
public SrcBuilder setSrcChoice(SrcChoice value)
public SrcBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Src>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Src> augmentationValue)
public SrcBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Src>> augmentationType)
public Src build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Src,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.