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