Bug 6896: [YANG 1.1] Add support for new statement "action"
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / ActionDefinition.java
diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ActionDefinition.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/ActionDefinition.java
new file mode 100644 (file)
index 0000000..26d6729
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.yangtools.yang.model.api;
+
+import com.google.common.annotations.Beta;
+import java.util.Set;
+
+/**
+ * Represents YANG action statement
+ *
+ * The "action" statement is used to define an operation connected to a
+ * specific container or list data node.  It takes one argument, which
+ * is an identifier, followed by a block of substatements that holds
+ * detailed action information.  The argument is the name of the action.
+ */
+@Beta
+public interface ActionDefinition extends OperationDefinition {
+
+}