All Superinterfaces:
org.opendaylight.yangtools.yang.model.api.DocumentedNode, org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
Enclosing interface:
Enumeration

public static interface Enumeration.Pair extends org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
Interface is used for reading enumeration item. It means item's name and its value.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode

    org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the binding representation for the name of the enumeration item.
    Returns the name of the enumeration item as it is specified in the input YANG.
    int
    Returns value of the enumeration item.

    Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode

    getDescription, getReference, getUnknownSchemaNodes

    Methods inherited from interface org.opendaylight.yangtools.yang.model.api.DocumentedNode.WithStatus

    getStatus
  • Method Details

    • getName

      String getName()
      Returns the name of the enumeration item as it is specified in the input YANG.
      Returns:
      the name of the enumeration item as it is specified in the input YANG.
    • getMappedName

      String getMappedName()
      Returns the binding representation for the name of the enumeration item.
      Returns:
      the binding representation for the name of the enumeration item.
    • getValue

      int getValue()
      Returns value of the enumeration item.
      Returns:
      the value of the enumeration item.