Class YangParserConfiguration
java.lang.Object
org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration
- All Implemented Interfaces:
Immutable
A configuration of
YangParser wiring for use with YangParserFactory.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final YangParserConfigurationSystem-wide default configuration. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Return a newYangParserConfiguration.Builderinitialized to default configuration.booleaninthashCode()booleanReturntrueifDeclarationReferenceto source location in the final parser product, notably makingDeclaredStatement.declarationReference()available.toString()booleanIssue a warning when aliststatement without akeystatement is found in theconfig truepart of the schema tree.
-
Field Details
-
DEFAULT
System-wide default configuration.
-
-
Method Details
-
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
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
Return a newYangParserConfiguration.Builderinitialized to default configuration.- Returns:
- A new builder
-