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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final YangParserConfiguration
System-wide default configuration. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Return a newYangParserConfiguration.Builder
initialized to default configuration.boolean
int
hashCode()
boolean
Returntrue
ifDeclarationReference
to source location in the final parser product, notably makingDeclaredStatement.declarationReference()
available.toString()
boolean
Issue a warning when alist
statement without akey
statement is found in theconfig true
part of the schema tree.
-
Field Details
-
DEFAULT
System-wide default configuration.
-
-
Method Details
-
importResolutionMode
-
retainDeclarationReferences
public boolean retainDeclarationReferences()Returntrue
ifDeclarationReference
to source location in the final parser product, notably makingDeclaredStatement.declarationReference()
available.- Returns:
true
if declaration references should be retained
-
warnForUnkeyedLists
public boolean warnForUnkeyedLists()Issue a warning when alist
statement without akey
statement is found in theconfig true
part of the schema tree. Such statements run contrary to RFC7950, but are readily supported by OpenDaylight infrastructure.- Returns:
true
if non-compliantlist
statements should be reported
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
Return a newYangParserConfiguration.Builder
initialized to default configuration.- Returns:
- A new builder
-