1 /***
2 * Cecilia ADL Compiler
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Contact: fractal@objectweb.org
19 *
20 * Author: Alessio Pace, Lionel Debroux
21 */
22
23 package org.objectweb.fractal.cecilia.adl.idl.ast;
24
25 /**
26 * AST Node interface to represent one enumeration {name, value} pair.
27 */
28 public interface EnumNameValuePair {
29
30 /**
31 * Returns the name of this enumeration entry.
32 *
33 * @return the name of this enumeration entry.
34 */
35 String getName();
36
37 /**
38 * Set the name of this enumeration entry.
39 *
40 * @param name the name of this enumeration entry to be set.
41 */
42 void setName(String name);
43
44 /**
45 * Returns the value of this enumeration entry.
46 *
47 * @return the value of this enumeration entry.
48 */
49 String getValue();
50
51 /**
52 * Set the value of this enumeration entry.
53 *
54 * @param value the value of this enumeration entry to be set.
55 */
56 void setValue(String value);
57 }