X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fapi%2FDataSchemaNode.java;h=ab6650eb5a3521a6b33af357ddb561d215363a3d;hb=1636eaae9a133d79301b7ebb02ae8d6a5fc38117;hp=6b3f4703bad31618a11eaad5573774adee47cc9b;hpb=475f8732893197eb41bfa695a4c7dedb45f25f06;p=yangtools.git diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DataSchemaNode.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DataSchemaNode.java index 6b3f4703ba..ab6650eb5a 100644 --- a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DataSchemaNode.java +++ b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/DataSchemaNode.java @@ -8,44 +8,31 @@ package org.opendaylight.yangtools.yang.model.api; /** + * Data Schema Node represents abstract supertype from which all data tree definitions are derived. Unlike what + * the name would suggest, this interface corresponds more to RFC7950 {@code data definition statement} than to + * {@code data node}, yet it notably does not include {@link UsesNode} and {@link AugmentationSchemaNode}, which are + * resolved separately. * - * Contains the method which are used for getting metadata from the schema nodes - * which contains data. + *

+ * Common interface is composed of {@link #isConfiguration()}, governing validity in config/operation data stores + * and {@link WhenConditionAware} mixin, which governs validity based on other document data. * + * @see ContainerSchemaNode + * @see ListSchemaNode + * @see LeafListSchemaNode + * @see ChoiceSchemaNode + * @see CaseSchemaNode + * @see LeafSchemaNode + * @see AnyXmlSchemaNode + * @see AnyDataSchemaNode */ -public interface DataSchemaNode extends SchemaNode { - - /** - * Returns true if the data node was added by augmentation, - * otherwise returns false - * - * @return true if the data node was added by augmentation, - * otherwise returns false - */ - boolean isAugmenting(); - - /** - * Returns true if the data node was added by uses statement, - * otherwise returns false - * - * @return true if the data node was added by uses statement, - * otherwise returns false - */ - boolean isAddedByUses(); - +public interface DataSchemaNode extends SchemaNode, CopyableNode, WhenConditionAware { /** * Returns true if the data represents configuration data, - * otherwise returns false + * otherwise returns false. * * @return true if the data represents configuration data, * otherwise returns false */ boolean isConfiguration(); - - /** - * Returns the constraints associated with Data Schema Node - * - * @return the constraints associated with Data Schema Node - */ - ConstraintDefinition getConstraints(); }