Enum Class NamespaceStorage.StorageType

java.lang.Object
java.lang.Enum<NamespaceStorage.StorageType>
org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceStorage.StorageType
All Implemented Interfaces:
Serializable, Comparable<NamespaceStorage.StorageType>, Constable
Enclosing interface:
NamespaceStorage

public static enum NamespaceStorage.StorageType extends Enum<NamespaceStorage.StorageType>
Enumeration of all possible types of storage.
  • Enum Constant Details

    • GLOBAL

      public static final NamespaceStorage.StorageType GLOBAL
      Global storage, visible from all sources. There is exactly one such storage in any NamespaceStorage hierarchy and it logically sits on top of it.
    • SOURCE_LOCAL_SPECIAL

      public static final NamespaceStorage.StorageType SOURCE_LOCAL_SPECIAL
      Storage of the root statement of a particular source and any sources it is importing.
    • STATEMENT_LOCAL

      public static final NamespaceStorage.StorageType STATEMENT_LOCAL
      Storage of a single statement.
    • ROOT_STATEMENT_LOCAL

      public static final NamespaceStorage.StorageType ROOT_STATEMENT_LOCAL
      Storage of the root statement of a particular source.
  • Method Details

    • values

      public static NamespaceStorage.StorageType[] 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 NamespaceStorage.StorageType 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