Class IRKeyword.Unqualified

java.lang.Object
org.opendaylight.yangtools.yang.ir.IRKeyword
org.opendaylight.yangtools.yang.ir.IRKeyword.Unqualified
All Implemented Interfaces:
Immutable
Enclosing class:
IRKeyword

public static final class IRKeyword.Unqualified extends IRKeyword
  • Method Details

    • of

      public static @NonNull IRKeyword.Unqualified of(String localName)
    • prefix

      public String prefix()
      Description copied from class: IRKeyword
      This keyword's 'prefix' part. This corresponds to prefix identifier. For YANG keywords this is null. For language extension references this is the non-null prefix which references the YANG module defining the language extension.

      Note the returned string, if non-null, is guaranteed to conform to rules of identifier ABNF.

      Specified by:
      prefix in class IRKeyword
      Returns:
      This keyword's prefix, or null if this keyword references a YANG keyword.
    • asStringDeclaration

      public String asStringDeclaration()
      Description copied from class: IRKeyword
      Helper method to re-create the string which was used to declared this keyword.
      Specified by:
      asStringDeclaration in class IRKeyword
      Returns:
      Declaration string.
    • toString

      public final String toString()
      Overrides:
      toString in class Object