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;
11 import java.util.Collections;
12 import java.util.Date;
13 import java.util.List;
15 import org.opendaylight.controller.yang.common.QName;
16 import org.opendaylight.controller.yang.model.api.SchemaPath;
17 import org.opendaylight.controller.yang.model.api.Status;
18 import org.opendaylight.controller.yang.model.api.UnknownSchemaNode;
19 import org.opendaylight.controller.yang.model.api.type.EmptyTypeDefinition;
21 public class EmptyType implements EmptyTypeDefinition {
23 private final QName name = BaseTypes.constructQName("empty");
24 private final SchemaPath path;
25 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.";
26 private final String reference = "https://tools.ietf.org/html/rfc6020#page-131";
27 private final EmptyTypeDefinition baseType;
30 path = BaseTypes.schemaPath(name);
34 public EmptyType(final List<String> actualPath,
35 final URI namespace, final Date revision) {
36 path = BaseTypes.schemaPath(actualPath, namespace, revision);
37 this.baseType = new EmptyType();
41 public EmptyTypeDefinition getBaseType() {
46 public String getUnits() {
51 public Object getDefaultValue() {
56 public QName getQName() {
61 public SchemaPath getPath() {
66 public String getDescription() {
71 public String getReference() {
76 public Status getStatus() {
77 return Status.CURRENT;
81 public List<UnknownSchemaNode> getUnknownSchemaNodes() {
82 return Collections.emptyList();