/**
* Interface describing YANG 'leaf-list' statement.
*/
-public interface LeafListSchemaNode extends TypedDataSchemaNode, MustConstraintAware, ElementCountConstraintAware,
- UserOrderedAware<LeafListEffectiveStatement> {
+public non-sealed interface LeafListSchemaNode extends TypedDataSchemaNode, MustConstraintAware,
+ ElementCountConstraintAware, UserOrderedAware<LeafListEffectiveStatement> {
/**
* Return the default value of this leaf-list, as per the rules outlined in
* Since we are presenting the effective model of the world, the information dictated by 'default' and 'units'
* substatements is captured in the type returned via {@link #getType()}.
*/
-public interface LeafSchemaNode extends TypedDataSchemaNode, MandatoryAware, MustConstraintAware,
+public non-sealed interface LeafSchemaNode extends TypedDataSchemaNode, MandatoryAware, MustConstraintAware,
EffectiveStatementEquivalent<LeafEffectiveStatement> {
}
*
* @author Robert Varga
*/
-public interface TypedDataSchemaNode extends DataSchemaNode, TypeAware {
+public sealed interface TypedDataSchemaNode extends DataSchemaNode, TypeAware
+ permits LeafSchemaNode, LeafListSchemaNode {
/**
* Returns type of the instance which implements <code>DataSchemaNode</code>.
*