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