A race condition occurs between ARPHandler and HostTracker if the ARP
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-util / src / main / java / org / opendaylight / controller / yang / model / util / EmptyType.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.yang.model.util;
9
10 import java.util.Collections;
11 import java.util.List;
12
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;
18
19 public final class EmptyType implements EmptyTypeDefinition {
20     private final QName name = BaseTypes.constructQName("empty");
21     private final SchemaPath path;
22     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.";
23     private final String reference = "https://tools.ietf.org/html/rfc6020#page-131";
24     private final EmptyTypeDefinition baseType;
25
26     public EmptyType(final SchemaPath path) {
27         this.path = path;
28         this.baseType = this;
29     }
30
31     @Override
32     public EmptyTypeDefinition getBaseType() {
33         return baseType;
34     }
35
36     @Override
37     public String getUnits() {
38         return null;
39     }
40
41     @Override
42     public Object getDefaultValue() {
43         return null;
44     }
45
46     @Override
47     public QName getQName() {
48         return name;
49     }
50
51     @Override
52     public SchemaPath getPath() {
53         return path;
54     }
55
56     @Override
57     public String getDescription() {
58         return description;
59     }
60
61     @Override
62     public String getReference() {
63         return reference;
64     }
65
66     @Override
67     public Status getStatus() {
68         return Status.CURRENT;
69     }
70
71     @Override
72     public List<UnknownSchemaNode> getUnknownSchemaNodes() {
73         return Collections.emptyList();
74     }
75
76 }