Class YangParserConfiguration

java.lang.Object
org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration
All Implemented Interfaces:
Immutable

@NonNullByDefault public final class YangParserConfiguration extends Object implements Immutable
A configuration of YangParser wiring for use with YangParserFactory.
  • Field Details

  • Method Details

    • importResolutionMode

      @Beta public ImportResolutionMode importResolutionMode()
    • retainDeclarationReferences

      public boolean retainDeclarationReferences()
      Return true if DeclarationReference to source location in the final parser product, notably making DeclaredStatement.declarationReference() available.
      Returns:
      true if declaration references should be retained
    • warnForUnkeyedLists

      public boolean warnForUnkeyedLists()
      Issue a warning when a list statement without a key statement is found in the config true part of the schema tree. Such statements run contrary to RFC7950, but are readily supported by OpenDaylight infrastructure.
      Returns:
      true if non-compliant list statements should be reported
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static YangParserConfiguration.Builder builder()
      Return a new YangParserConfiguration.Builder initialized to default configuration.
      Returns:
      A new builder