*/\r
package org.opendaylight.controller.yang.model.util;\r
\r
-import java.net.URI;\r
import java.util.Collections;\r
-import java.util.Date;\r
import java.util.List;\r
\r
import org.opendaylight.controller.yang.common.QName;\r
*\r
* @see IdentityrefTypeDefinition\r
*/\r
-public class IdentityrefType implements IdentityrefTypeDefinition {\r
-\r
+public final class IdentityrefType implements IdentityrefTypeDefinition {\r
private final QName name = BaseTypes.constructQName("identityref");\r
private final SchemaPath path;\r
private final String description = "The identityref type is used to reference an existing identity.";\r
private final String reference = "https://tools.ietf.org/html/rfc6020#section-9.10";\r
private final IdentityrefTypeDefinition baseType;\r
-\r
private final QName identity;\r
-\r
- private String units = "";\r
-\r
- private IdentityrefType(QName identity) {\r
- this.identity = identity;\r
- this.path = BaseTypes.schemaPath(name);\r
- this.baseType = this;\r
- }\r
+ private final String units = "";\r
\r
public IdentityrefType(QName identity, SchemaPath schemaPath) {\r
this.identity = identity;\r
this.path = schemaPath;\r
- this.baseType = new IdentityrefType(identity);\r
- }\r
-\r
- public IdentityrefType(final List<String> actualPath,\r
- final URI namespace, final Date revision, final QName identity) {\r
- this.identity = identity;\r
- this.path = BaseTypes.schemaPath(actualPath, namespace, revision);\r
- this.baseType = new IdentityrefType(identity);\r
+ this.baseType = this;\r
}\r
\r
@Override\r