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<String> 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<String> 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;
}
final Date revision, final List<RangeConstraint> rangeStatements,
final String units, final Integer defaultValue) {
super(actualPath, namespace, revision, name, description, rangeStatements, units);
+ this.baseType = new Int32();
this.defaultValue = defaultValue;
}
*/
@Override
public IntegerTypeDefinition getBaseType() {
- return this;
+ return baseType;
}
/*