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%2FBooleanType.java;h=04b2dc90d1ac66f507926d0e9edff0c51b63f682;hb=9ceed566491d172e02220b04ec6869867f2f2473;hp=0cda67c27fe2cf7158c8561bdb44281fb1f24b48;hpb=0f846fcbc207a4213ac133e1d08a305fc72168ba;p=controller.git diff --git a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/BooleanType.java b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/BooleanType.java index 0cda67c27f..04b2dc90d1 100644 --- a/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/BooleanType.java +++ b/opendaylight/sal/yang-prototype/yang/yang-model-util/src/main/java/org/opendaylight/controller/yang/model/util/BooleanType.java @@ -22,30 +22,22 @@ import org.opendaylight.controller.yang.model.api.type.BooleanTypeDefinition; * @see BooleanTypeDefinition */ public final class BooleanType implements BooleanTypeDefinition { - private final QName name = BaseTypes.constructQName("boolean"); private final SchemaPath path; private final String description = "The boolean built-in type represents a boolean value."; private final String reference = "https://tools.ietf.org/html/rfc6020#section-9.5"; private final BooleanTypeDefinition baseType; private final Boolean defaultValue; - private String units = ""; + private final String units = ""; /** * Default constructor with default value set to "false". */ - private BooleanType() { - super(); - this.defaultValue = false; - this.path = BaseTypes.schemaPath(name); - this.baseType = this; - } - public BooleanType(final SchemaPath path) { super(); this.defaultValue = false; this.path = path; - this.baseType = new BooleanType(); + this.baseType = this; } /** @@ -58,23 +50,7 @@ public final class BooleanType implements BooleanTypeDefinition { super(); this.defaultValue = defaultValue; this.path = path; - this.baseType = new BooleanType(); - } - - /** - * Boolean Type constructor. - * - * @param defaultValue - * Default Value - * @param units - * Units - */ - public BooleanType(final SchemaPath path, final Boolean defaultValue, final String units) { - super(); - this.defaultValue = defaultValue; - this.units = units; - this.path = path; - this.baseType = new BooleanType(); + this.baseType = this; } /*