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%2FUint64.java;h=f9c2aa3c90a15f41acb9700bae152aa953a237a9;hb=refs%2Fchanges%2F60%2F260%2F2;hp=b5af55fc41150d11c6ddc97d62d877e56a08c42f;hpb=4ce0f6630bc576b97c8c9a08848aafb6e90a75b0;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Uint64.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Uint64.java index b5af55fc41..f9c2aa3c90 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Uint64.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/Uint64.java @@ -8,6 +8,8 @@ package org.opendaylight.controller.yang.model.util; import java.math.BigInteger; +import java.net.URI; +import java.util.Date; import java.util.List; import org.opendaylight.controller.yang.common.QName; @@ -19,44 +21,57 @@ import org.opendaylight.controller.yang.model.api.type.UnsignedIntegerTypeDefini * uint64 represents integer values between 0 and 18446744073709551615, * inclusively. The Java counterpart of Yang uint64 built-in type is * {@link BigInteger}. - * + * */ public class Uint64 extends AbstractUnsignedInteger { private static final QName name = BaseTypes.constructQName("uint64"); + private BigInteger defaultValue = null; - private static final String description = + private static final String description = "uint64 represents integer values between 0 and 18446744073709551615, inclusively."; + private final UnsignedIntegerTypeDefinition baseType; - public Uint64() { + private Uint64() { super(name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = this; } - public Uint64(final BigInteger defaultValue) { - super(name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + public Uint64(final List actualPath, + final URI namespace, final Date revision) { + super(actualPath, namespace, revision, name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = new Uint64(); + } + + public Uint64(final List actualPath, + final URI namespace, final Date revision, final BigInteger defaultValue) { + super(actualPath, namespace, revision, name, description, Short.MIN_VALUE, Short.MAX_VALUE, ""); + this.baseType = new Uint64(); this.defaultValue = defaultValue; } - public Uint64(final List rangeStatements, + public Uint64(final List actualPath, + final URI namespace, final Date revision, final List rangeStatements, final String units, final BigInteger defaultValue) { - super(name, description, rangeStatements, units); + super(actualPath, namespace, revision, name, description, rangeStatements, units); + this.baseType = new Uint64(); this.defaultValue = defaultValue; } /* * (non-Javadoc) - * + * * @see * org.opendaylight.controller.yang.model.api.TypeDefinition#getBaseType() */ @Override public UnsignedIntegerTypeDefinition getBaseType() { - return this; + return baseType; } /* * (non-Javadoc) - * + * * @see * org.opendaylight.controller.yang.model.api.TypeDefinition#getDefaultValue * ()