Class YangParserConfiguration
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration
-
- All Implemented Interfaces:
Immutable,MutationBehaviour<Immutable>
@NonNullByDefault public final class YangParserConfiguration extends Object implements Immutable
A configuration ofYangParserwiring for use withYangParserFactory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYangParserConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static YangParserConfigurationDEFAULTSystem-wide default configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static YangParserConfiguration.Builderbuilder()Return a newYangParserConfiguration.Builderinitialized to default configuration.booleanequals(@Nullable Object obj)inthashCode()ImportResolutionModeimportResolutionMode()booleanretainDeclarationReferences()ReturntrueifDeclarationReferenceto source location in the final parser product, notably makingDeclaredStatement.declarationReference()available.StringtoString()booleanwarnForUnkeyedLists()Issue a warning when aliststatement without akeystatement is found in theconfig truepart of the schema tree.
-
-
-
Field Detail
-
DEFAULT
public static final YangParserConfiguration DEFAULT
System-wide default configuration.
-
-
Method Detail
-
importResolutionMode
@Beta public ImportResolutionMode importResolutionMode()
-
retainDeclarationReferences
public boolean retainDeclarationReferences()
ReturntrueifDeclarationReferenceto source location in the final parser product, notably makingDeclaredStatement.declarationReference()available.- Returns:
trueif declaration references should be retained
-
warnForUnkeyedLists
public boolean warnForUnkeyedLists()
Issue a warning when aliststatement without akeystatement is found in theconfig truepart of the schema tree. Such statements run contrary to RFC7950, but are readily supported by OpenDaylight infrastructure.- Returns:
trueif non-compliantliststatements should be reported
-
builder
public static YangParserConfiguration.Builder builder()
Return a newYangParserConfiguration.Builderinitialized to default configuration.- Returns:
- A new builder
-
-