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%2FInt32.java;fp=opendaylight%2Fsal%2Fyang-prototype%2Fyang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fmodel%2Futil%2FInt32.java;h=fb777c5992399aed543986684f2e94acd0531cd6;hb=9fab620d933bab1ddf7eef39087fa515e6d0c988;hp=da356309a504735f5644eced96fbebedd81addf2;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/Int32.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int32.java index da356309a5..fb777c5992 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int32.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Int32.java @@ -30,15 +30,23 @@ public class Int32 extends AbstractSignedInteger { private Integer defaultValue = null; private static final String description = "int32 represents integer values between -2147483648 and 2147483647, inclusively."; + private final IntegerTypeDefinition baseType; + + private Int32() { + super(name, description, Integer.MIN_VALUE, Integer.MAX_VALUE, ""); + this.baseType = this; + } public Int32(final List actualPath, final URI namespace, final Date revision) { super(actualPath, namespace, revision, name, description, Integer.MIN_VALUE, Integer.MAX_VALUE, ""); + this.baseType = new Int32(); } public Int32(final List actualPath, final URI namespace, final Date revision, final Integer defaultValue) { super(actualPath, namespace, revision, name, description, Integer.MIN_VALUE, Integer.MAX_VALUE, ""); + this.baseType = new Int32(); this.defaultValue = defaultValue; } @@ -46,6 +54,7 @@ public class Int32 extends AbstractSignedInteger { final Date revision, final List rangeStatements, final String units, final Integer defaultValue) { super(actualPath, namespace, revision, name, description, rangeStatements, units); + this.baseType = new Int32(); this.defaultValue = defaultValue; } @@ -57,7 +66,7 @@ public class Int32 extends AbstractSignedInteger { */ @Override public IntegerTypeDefinition getBaseType() { - return this; + return baseType; } /*