public class OpenBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Open>
OpenBuilder 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:
OpenBuilder createTarget(int fooXyzzy, int barBaz) {
return new OpenBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of OpenBuilder, 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 methodOpenBuilder,
Builder| Constructor and Description |
|---|
OpenBuilder() |
OpenBuilder(Object arg) |
OpenBuilder(ObjectHeader arg) |
OpenBuilder(Open base) |
| Modifier and Type | Method and Description |
|---|---|
OpenBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Open>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Open> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Open>> |
augmentation(Class<E$$> augmentationType) |
Open |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Short |
getDeadTimer() |
Short |
getKeepalive() |
Short |
getSessionId() |
Tlvs |
getTlvs() |
ProtocolVersion |
getVersion() |
Boolean |
isIgnore() |
Boolean |
isProcessingRule() |
OpenBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Open>> augmentationType) |
OpenBuilder |
setDeadTimer(Short value) |
OpenBuilder |
setIgnore(Boolean value) |
OpenBuilder |
setKeepalive(Short value) |
OpenBuilder |
setProcessingRule(Boolean value) |
OpenBuilder |
setSessionId(Short value) |
OpenBuilder |
setTlvs(Tlvs value) |
OpenBuilder |
setVersion(ProtocolVersion value) |
public OpenBuilder()
public OpenBuilder(Object arg)
public OpenBuilder(ObjectHeader arg)
public OpenBuilder(Open base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Short getDeadTimer()
public Short getKeepalive()
public Short getSessionId()
public Tlvs getTlvs()
public ProtocolVersion getVersion()
public Boolean isIgnore()
public Boolean isProcessingRule()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Open>> E$$ augmentation(Class<E$$> augmentationType)
public OpenBuilder setDeadTimer(Short value)
public OpenBuilder setKeepalive(Short value)
public OpenBuilder setSessionId(Short value)
public OpenBuilder setTlvs(Tlvs value)
public OpenBuilder setVersion(ProtocolVersion value)
public OpenBuilder setIgnore(Boolean value)
public OpenBuilder setProcessingRule(Boolean value)
public OpenBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Open>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Open> augmentationValue)
public OpenBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Open>> augmentationType)
public Open build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Open,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.