X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Futil%2FInt8.java;fp=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Futil%2FInt8.java;h=8b0fbe1fa7148197807db9ebbfc2e6b1b997091f;hb=9fab620d933bab1ddf7eef39087fa515e6d0c988;hp=6a917b252f4bd916bca5359add44bc4dd3c1262b;hpb=184e4f61d034f6c83da75de288d4f56ec48f60bf;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int8.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int8.java index 6a917b252f..8b0fbe1fa7 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int8.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int8.java @@ -29,15 +29,23 @@ public class Int8 extends AbstractSignedInteger { private Byte defaultValue = null; private static final String description = "represents integer values between -128 and 127, inclusively."; + private final IntegerTypeDefinition baseType; + + private Int8() { + super(name, description, Byte.MIN_VALUE, Byte.MAX_VALUE, ""); + this.baseType = this; + } public Int8(final List actualPath, final URI namespace, final Date revision) { super(actualPath, namespace, revision, name, description, Byte.MIN_VALUE, Byte.MAX_VALUE, ""); + this.baseType = new Int8(); } public Int8(final List actualPath, final URI namespace, final Date revision, final Byte defaultValue) { super(actualPath, namespace, revision, name, description, Byte.MIN_VALUE, Byte.MAX_VALUE, ""); + this.baseType = new Int8(); this.defaultValue = defaultValue; } @@ -45,6 +53,7 @@ public class Int8 extends AbstractSignedInteger { final Date revision, final List rangeStatements, final String units, final Byte defaultValue) { super(actualPath, namespace, revision, name, description, rangeStatements, units); + this.baseType = new Int8(); this.defaultValue = defaultValue; } @@ -55,7 +64,7 @@ public class Int8 extends AbstractSignedInteger { */ @Override public IntegerTypeDefinition getBaseType() { - return this; + return baseType; } /*