Add AugmentationIdentifier(ImmutableSet)
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / YangInstanceIdentifier.java
index bc8a130056072c407ccdc1a2f6a64df6d89aa465..0f693a7ff5fbadd763bf94853ca5d62484e41811 100644 (file)
@@ -716,6 +716,17 @@ public abstract class YangInstanceIdentifier implements Path<YangInstanceIdentif
             throw new UnsupportedOperationException("Augmentation node has no QName");
         }
 
+        /**
+         * Construct new augmentation identifier using supplied set of possible
+         * child nodes.
+         *
+         * @param childNames
+         *            Set of possible child nodes.
+         */
+        public AugmentationIdentifier(final ImmutableSet<QName> childNames) {
+            this.childNames = requireNonNull(childNames);
+        }
+
         /**
          * Construct new augmentation identifier using supplied set of possible
          * child nodes.