2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.yang.model.util;
10 import java.util.Collections;
11 import java.util.List;
13 import org.opendaylight.controller.yang.common.QName;
14 import org.opendaylight.controller.yang.model.api.SchemaPath;
15 import org.opendaylight.controller.yang.model.api.Status;
16 import org.opendaylight.controller.yang.model.api.UnknownSchemaNode;
17 import org.opendaylight.controller.yang.model.api.type.EmptyTypeDefinition;
19 public final class EmptyType implements EmptyTypeDefinition {
21 private final QName name = BaseTypes.constructQName("empty");
22 private final SchemaPath path;
23 private final String description = "The empty built-in type represents a leaf that does not have any value, it conveys information by its presence or absence.";
24 private final String reference = "https://tools.ietf.org/html/rfc6020#page-131";
25 private final EmptyTypeDefinition baseType;
28 path = BaseTypes.schemaPath(name);
32 public EmptyType(final SchemaPath path) {
34 this.baseType = new EmptyType();
38 public EmptyTypeDefinition getBaseType() {
43 public String getUnits() {
48 public Object getDefaultValue() {
53 public QName getQName() {
58 public SchemaPath getPath() {
63 public String getDescription() {
68 public String getReference() {
73 public Status getStatus() {
74 return Status.CURRENT;
78 public List<UnknownSchemaNode> getUnknownSchemaNodes() {
79 return Collections.emptyList();