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.yangtools.yang.model.api.type;
10 import java.util.List;
11 import org.opendaylight.yangtools.yang.common.QName;
12 import org.opendaylight.yangtools.yang.model.api.SchemaNode;
13 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
14 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
18 * Makes is possible to access to the individual enumeration values of this
22 public interface EnumTypeDefinition extends TypeDefinition<EnumTypeDefinition> {
25 * Returns all enumeration values.
27 * @return list of <code>EnumPair</code> type instastances which contain the
28 * data about all individual enumeration pairs of
29 * <code>enumeration</code> YANG built-in type
31 List<EnumPair> getValues();
35 * Contains the methods for accessing the data about the concrete
36 * enumeration item which represents <code>enum</code> YANG type.
38 interface EnumPair extends SchemaNode {
42 * @deprecated Enum pair SHOULD NOT have schema path, since it's argument is only string and
52 * @deprecated Enum pair SHOULD NOT have QName, since it's argument is only string (allows
53 * characters not allowed in QName) and not QName. Use {@link #getName()}
62 * The name to specify each assigned name of an enumeration type.
64 * @return name of each assigned name of an enumeration type.
69 * The "value" statement, which is optional, is used to associate an
70 * integer value with the assigned name for the enum. This integer value
71 * MUST be in the range -2147483648 to 2147483647, and it MUST be unique
72 * within the enumeration type.
74 * @return integer value assigned to enumeration