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