import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
public final class YangValidationBundles {
- private YangValidationBundles() {
- throw new UnsupportedOperationException("Utility class");
- }
-
public static final Set<StatementDefinition> SUPPORTED_REFINE_SUBSTATEMENTS = ImmutableSet.of(
YangStmtMapping.DEFAULT, YangStmtMapping.DESCRIPTION, YangStmtMapping.REFERENCE, YangStmtMapping.CONFIG,
YangStmtMapping.MANDATORY, YangStmtMapping.MUST, YangStmtMapping.PRESENCE, YangStmtMapping.MIN_ELEMENTS,
.put(YangStmtMapping.MAX_ELEMENTS, ImmutableSet.of(YangStmtMapping.LIST, YangStmtMapping.LEAF_LIST))
.build();
+ private YangValidationBundles() {
+ // Hidden on purpose
+ }
+
/**
* Supported deviation target statements for specific deviate substatements in specific yang-version.
* Example: deviate 'add' adds a 'default' substatement. In YANG 1.0, the target node of such deviation can be
*
* @deprecated This is an implementation leak from statement support and will be removed in next major version.
*/
- // FIXME: 5.0.0: move this to AbstractDeviateStatementSupport. This is not resolved from validation bundles at all,
+ // FIXME: 7.0.0: move this to AbstractDeviateStatementSupport. This is not resolved from validation bundles at all,
// hence it makes sense to co-locate this with its user.
@Deprecated
public static final Table<YangVersion, StatementDefinition, Set<StatementDefinition>> SUPPORTED_DEVIATION_TARGETS =
YangStmtMapping.CONTAINER, YangStmtMapping.LIST, YangStmtMapping.CASE, YangStmtMapping.INPUT,
YangStmtMapping.OUTPUT, YangStmtMapping.NOTIFICATION, YangStmtMapping.CHOICE, YangStmtMapping.RPC);
- // FIXME: 5.0.0: consider hiding this list, as choice nodes are handling creation of implied shorthands themselves.
+ // FIXME: 7.0.0: consider hiding this list, as choice nodes are handling creation of implied shorthands themselves.
// This has implications on other members of this class, as they really seem like something which
// should live in corresponding StatementSupport classes.
public static final Set<StatementDefinition> SUPPORTED_CASE_SHORTHANDS = ImmutableSet.of(