Added support for annotations in generated APIs.
[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 public interface Enumeration extends Type {
13     
14     public List<AnnotationType> getAnnotations();
15     
16     public Type getDefiningType();
17
18     public List<Pair> getValues();
19
20     public String toFormattedString();
21
22     interface Pair {
23
24         public String getName();
25
26         public Integer getValue();
27     }
28 }