Minor formatting changes performed in yang-model-parser-impl.
Signed-off-by: Martin Vitez <mvitez@cisco.com>
*/\r
package org.opendaylight.controller.yang.model.api;\r
\r
-import java.util.Set;\r
-\r
+/**\r
+ * AugmentationSchema represents augment definition. The "augment" statement\r
+ * allows a module or submodule to add to the schema tree defined in an external\r
+ * module, or the current module and its submodules, and to add to the nodes\r
+ * from a grouping in a "uses" statement.\r
+ */\r
public interface AugmentationSchema extends DataNodeContainer {\r
\r
+ /**\r
+ * @return when statement\r
+ */\r
RevisionAwareXPath getWhenCondition();\r
\r
+ /**\r
+ * @return textual description of this augment.\r
+ */\r
String getDescription();\r
\r
+ /**\r
+ * @return textual cross-reference to an external document that provides\r
+ * additional information relevant to this node.\r
+ */\r
String getReference();\r
\r
+ /**\r
+ * @return actual status of this node.\r
+ */\r
Status getStatus();\r
\r
+ /**\r
+ * @return SchemaPath that identifies a node in the schema tree. This node\r
+ * is called the augment's target node. The target node MUST be\r
+ * either a container, list, choice, case, input, output, or\r
+ * notification node. It is augmented with the nodes defined as\r
+ * child nodes of this AugmentationSchema.\r
+ */\r
SchemaPath getTargetPath();\r
\r
- Set<UsesNode> getUses();\r
-\r
}\r
\r
import java.util.Set;\r
\r
+/**\r
+ * Interface for all nodes which are possible targets of augmentation. The\r
+ * target node of augmentation MUST be either a container, list, choice, case,\r
+ * input, output, or notification node.\r
+ */\r
public interface AugmentationTarget {\r
+\r
/**\r
- * Returns a set of augmentations targeting this element.\r
- * \r
- * @return\r
+ * @return set of augmentations targeting this element.\r
*/\r
Set<AugmentationSchema> getAvailableAugmentations();\r
+\r
}\r
*/\r
package org.opendaylight.controller.yang.model.api;\r
\r
+/**\r
+ * The ChoiceCaseNode interface is used to define branches of the ChoiceNode.\r
+ */\r
public interface ChoiceCaseNode extends DataSchemaNode, DataNodeContainer,\r
AugmentationTarget {\r
\r
import java.util.Set;
+/**
+ * The ChoiceNode defines a set of alternatives. It consists of a number of
+ * branches defined as ChoiceCaseNode objects.
+ */
public interface ChoiceNode extends DataSchemaNode, AugmentationTarget {
+ /**
+ * @return ChoiceCaseNode objects defined in this node
+ */
Set<ChoiceCaseNode> getCases();
+
}
import java.util.Set;\r
\r
public interface ConstraintDefinition {\r
- DataSchemaNode getParent();\r
\r
RevisionAwareXPath getWhenCondition();\r
\r
*/\r
package org.opendaylight.controller.yang.model.api;\r
\r
+/**\r
+ * The ContainerSchemaNode is used to define an interior data node in the schema\r
+ * tree. There are two styles of containers, those that exist only for\r
+ * organizing the hierarchy of data nodes, and those whose presence in the\r
+ * configuration has an explicit meaning.\r
+ */\r
public interface ContainerSchemaNode extends DataNodeContainer,\r
AugmentationTarget, DataSchemaNode {\r
\r
+ /**\r
+ * @return true, if presence of this container has an explicit meaning,\r
+ * false otherwise\r
+ */\r
boolean isPresenceContainer();\r
\r
}\r
\r
import org.opendaylight.controller.yang.common.QName;\r
\r
+/**\r
+ * Node which can contains other nodes.\r
+ */\r
public interface DataNodeContainer {\r
\r
+ /**\r
+ * @return Set of all newly defined types within this DataNodeContainer\r
+ */\r
Set<TypeDefinition<?>> getTypeDefinitions();\r
\r
+ /**\r
+ * Set of all child nodes defined within this DataNodeContainer\r
+ */\r
Set<DataSchemaNode> getChildNodes();\r
\r
+ /**\r
+ * Set of all groupings defined within this DataNodeContainer\r
+ */\r
Set<GroupingDefinition> getGroupings();\r
\r
+ /**\r
+ * @param name\r
+ * QName of seeked child\r
+ * @return child node of this DataNodeContainer if child with given name is\r
+ * present, null otherwise\r
+ */\r
DataSchemaNode getDataChildByName(QName name);\r
\r
+ /**\r
+ * @param name\r
+ * name of seeked child as String\r
+ * @return child node of this DataNodeContainer if child with given name is\r
+ * present, null otherwise\r
+ */\r
DataSchemaNode getDataChildByName(String name);\r
\r
+ /**\r
+ * @return Set of all uses nodes defined within this DataNodeContainer\r
+ */\r
Set<UsesNode> getUses();\r
\r
}\r
\r
import org.opendaylight.controller.yang.common.QName;\r
\r
+/**\r
+ * SchemaNode represents a node in schema tree.\r
+ */\r
public interface SchemaNode {\r
\r
public QName getQName();\r
\r
public SchemaPath getPath();\r
\r
+ /**\r
+ * @return textual description of this node.\r
+ */\r
public String getDescription();\r
\r
+ /**\r
+ * @return textual cross-reference to an external document that provides\r
+ * additional information relevant to this node.\r
+ */\r
public String getReference();\r
\r
+ /**\r
+ * @return actual status of this node.\r
+ */\r
public Status getStatus();\r
\r
+ /**\r
+ * @return collection of all unknown nodes defined under this schema node.\r
+ */\r
public List<UnknownSchemaNode> getUnknownSchemaNodes();\r
+\r
}\r