@Beta public final class EffectiveStmtUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<ElementCountConstraint> |
createElementCountConstraint(EffectiveStatement<?,?> stmt) |
static SourceException |
createNameCollisionSourceException(StmtContext<?,?,?> ctx,
EffectiveStatement<?,?> effectiveStatement) |
static boolean |
hasDefaultValueMarkedWithIfFeature(YangVersion yangVersion,
TypeEffectiveStatement<?> typeStmt,
Set<String> defaultValues)
Checks whether supplied type has any of specified default values marked
with an if-feature.
|
static boolean |
hasDefaultValueMarkedWithIfFeature(YangVersion yangVersion,
TypeEffectiveStatement<?> typeStmt,
String defaultValue)
Checks whether supplied type has specified default value marked with an
if-feature.
|
public static SourceException createNameCollisionSourceException(StmtContext<?,?,?> ctx, EffectiveStatement<?,?> effectiveStatement)
public static Optional<ElementCountConstraint> createElementCountConstraint(EffectiveStatement<?,?> stmt)
public static boolean hasDefaultValueMarkedWithIfFeature(YangVersion yangVersion, TypeEffectiveStatement<?> typeStmt, Set<String> defaultValues)
yangVersion
- yang versiontypeStmt
- type statement which should be checkeddefaultValues
- set of default values which should be checked. The method
creates mutable copy of this setpublic static boolean hasDefaultValueMarkedWithIfFeature(YangVersion yangVersion, TypeEffectiveStatement<?> typeStmt, String defaultValue)
yangVersion
- yang versiontypeStmt
- type statement which should be checkeddefaultValue
- default value to be checkedCopyright © 2019 OpenDaylight. All rights reserved.