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 ofYangParser
wiring for use withYangParserFactory
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
YangParserConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static YangParserConfiguration
DEFAULT
System-wide default configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static YangParserConfiguration.Builder
builder()
Return a newYangParserConfiguration.Builder
initialized to default configuration.boolean
equals(@Nullable Object obj)
int
hashCode()
ImportResolutionMode
importResolutionMode()
boolean
retainDeclarationReferences()
Returntrue
ifDeclarationReference
to source location in the final parser product, notably makingDeclaredStatement.declarationReference()
available.String
toString()
boolean
warnForUnkeyedLists()
Issue a warning when alist
statement without akey
statement is found in theconfig true
part 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()
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
-
builder
public static YangParserConfiguration.Builder builder()
Return a newYangParserConfiguration.Builder
initialized to default configuration.- Returns:
- A new builder
-
-