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%2FUint32.java;h=47af1e1c986d4ad10680833690be31b645c9e06c;hb=refs%2Fchanges%2F60%2F260%2F2;hp=75f9b49693e41ad01015156b31836334c02e330f;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/Uint32.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Uint32.java index 75f9b49693..47af1e1c98 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Uint32.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Uint32.java @@ -26,15 +26,23 @@ public class Uint32 extends AbstractUnsignedInteger { private static final QName name = BaseTypes.constructQName("uint32"); private Long defaultValue = null; private static final String description = "uint32 represents integer values between 0 and 4294967295, inclusively."; + private final UnsignedIntegerTypeDefinition baseType; + + private Uint32() { + super(name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = this; + } public Uint32(final List actualPath, final URI namespace, final Date revision) { super(actualPath, namespace, revision, name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = new Uint32(); } public Uint32(final List actualPath, final URI namespace, final Date revision, final Long defaultValue) { super(actualPath, namespace, revision, name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = new Uint32(); this.defaultValue = defaultValue; } @@ -42,6 +50,7 @@ public class Uint32 extends AbstractUnsignedInteger { final URI namespace, final Date revision, final List rangeStatements, final String units, final Long defaultValue) { super(actualPath, namespace, revision, name, description, rangeStatements, units); + this.baseType = new Uint32(); this.defaultValue = defaultValue; } @@ -53,7 +62,7 @@ public class Uint32 extends AbstractUnsignedInteger { */ @Override public UnsignedIntegerTypeDefinition getBaseType() { - return this; + return baseType; } /*