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.yangtools.yang.model.util;
10 import java.util.Collections;
11 import java.util.List;
13 import org.opendaylight.yangtools.yang.common.QName;
14 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
15 import org.opendaylight.yangtools.yang.model.api.Status;
16 import org.opendaylight.yangtools.yang.model.api.UnknownSchemaNode;
17 import org.opendaylight.yangtools.yang.model.api.type.EmptyTypeDefinition;
19 public final class EmptyType implements EmptyTypeDefinition {
20 private static EmptyType instance;
21 private static final QName NAME = BaseTypes.constructQName("empty");
22 private static final SchemaPath PATH = new SchemaPath(Collections.singletonList(NAME), true);
23 private static 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 static final String REFERENCE = "https://tools.ietf.org/html/rfc6020#page-131";
29 public static EmptyType getInstance() {
30 if (instance == null) {
31 instance = new EmptyType();
37 public EmptyTypeDefinition getBaseType() {
42 public String getUnits() {
47 public Object getDefaultValue() {
52 public QName getQName() {
57 public SchemaPath getPath() {
62 public String getDescription() {
67 public String getReference() {
72 public Status getStatus() {
73 return Status.CURRENT;
77 public List<UnknownSchemaNode> getUnknownSchemaNodes() {
78 return Collections.emptyList();
82 public String toString() {
83 return "type empty " + NAME;