Extended binding-model-api to support of Enclosed Generated Types and TOs.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / binding-model-api / src / main / java / org / opendaylight / controller / sal / binding / model / api / Enumeration.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.sal.binding.model.api;
9
10 import java.util.List;
11
12 /**
13  *
14  */
15 public interface Enumeration extends Type {
16
17     /**
18      *
19      * @return
20      */
21     public List<AnnotationType> getAnnotations();
22
23     /**
24      *
25      * @return
26      */
27     public Type getDefiningType();
28
29     /**
30      *
31      * @return
32      */
33     public List<Pair> getValues();
34
35     /**
36      *
37      * @return
38      */
39     public String toFormattedString();
40
41     /**
42      *
43      */
44     interface Pair {
45
46         public String getName();
47
48         public Integer getValue();
49     }
50 }