public class SeroBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Sero>
SeroBuilder 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:
SeroBuilder createTarget(int fooXyzzy, int barBaz) {
return new SeroBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SeroBuilder, 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 methodSeroBuilder,
Builder| Constructor and Description |
|---|
SeroBuilder() |
SeroBuilder(Object arg) |
SeroBuilder(ObjectHeader arg) |
SeroBuilder(Sero base) |
| Modifier and Type | Method and Description |
|---|---|
SeroBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Sero>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Sero> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Sero>> |
augmentation(Class<E$$> augmentationType) |
Sero |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<Subobject> |
getSubobject() |
Boolean |
isIgnore() |
Boolean |
isProcessingRule() |
SeroBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Sero>> augmentationType) |
SeroBuilder |
setIgnore(Boolean value) |
SeroBuilder |
setProcessingRule(Boolean value) |
SeroBuilder |
setSubobject(List<Subobject> values) |
public SeroBuilder()
public SeroBuilder(Object arg)
public SeroBuilder(ObjectHeader arg)
public SeroBuilder(Sero base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Boolean isIgnore()
public Boolean isProcessingRule()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Sero>> E$$ augmentation(Class<E$$> augmentationType)
public SeroBuilder setSubobject(List<Subobject> values)
public SeroBuilder setIgnore(Boolean value)
public SeroBuilder setProcessingRule(Boolean value)
public SeroBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Sero>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Sero> augmentationValue)
public SeroBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Sero>> augmentationType)
public Sero build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Sero,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.