Enum Class StatementNamespace

java.lang.Object
java.lang.Enum<StatementNamespace>
org.opendaylight.yangtools.binding.contract.StatementNamespace
All Implemented Interfaces:
Serializable, Comparable<StatementNamespace>, Constable

public enum StatementNamespace extends Enum<StatementNamespace>
YANG statement namespaces which we process.
  • Enum Constant Details

    • FEATURE

      public static final StatementNamespace FEATURE
      The namespace of all feature statements, bullet 3.
    • IDENTITY

      public static final StatementNamespace IDENTITY
      The namespace of all identity statements, bullet 4.
    • TYPEDEF

      public static final StatementNamespace TYPEDEF
      The namespace of all typedef statements, bullet 5.
    • GROUPING

      public static final StatementNamespace GROUPING
      The namespace of all grouping statements, bullet 6.
    • YANG_DATA

      public static final StatementNamespace YANG_DATA
      The namespace of all RFC8040 ietf-restconf:yang-data statements. These sit outside of the usual YANG statement namespaces, but may overlap in the usual case when template names conform to YANG identifier rules.
    • AUGMENT

      public static final StatementNamespace AUGMENT
      The namespace for augment statements. These are specific to Java Binding.
    • ACTION

      public static final StatementNamespace ACTION
    • ANYDATA

      public static final StatementNamespace ANYDATA
    • ANYXML

      public static final StatementNamespace ANYXML
    • CASE

      public static final StatementNamespace CASE
    • CHOICE

      public static final StatementNamespace CHOICE
    • CONTAINER

      public static final StatementNamespace CONTAINER
    • INPUT

      public static final StatementNamespace INPUT
    • LEAF

      public static final StatementNamespace LEAF
    • LIST

      public static final StatementNamespace LIST
    • LEAF_LIST

      public static final StatementNamespace LEAF_LIST
    • KEY

      public static final StatementNamespace KEY
      The namespace for a list's key statement. This typically does not conflict, but could in case of
      
         module foo {
           list foo { // results Foo
             key bar;  // triggers FooKey as a sibling to Foo
             leaf bar {
               type string;
             }
           }
      
           container foo-key; // results in FooKey
         }
       
      In this case the key-derived FooKey gets shifted to $KE.
    • NOTIFICATION

      public static final StatementNamespace NOTIFICATION
    • OUTPUT

      public static final StatementNamespace OUTPUT
    • RPC

      public static final StatementNamespace RPC
    • DATA_ROOT

      public static final StatementNamespace DATA_ROOT
      The namespace for a module's data root interface. This typically does not conflict, but could in case of
      
           module foo { // results in FooData
             container foo-data; // results in FooData as well
           }
       
      In this case the module-derived FooData gets shifted to $D.
  • Method Details

    • values

      public static StatementNamespace[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StatementNamespace valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • suffix

      public @NonNull String suffix()
    • resistant

      public boolean resistant()