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