Add ietf-netconf-acm model
[netconf.git] / netconf / models / ietf-netconf-acm / src / main / java / org / opendaylight / yang / gen / v1 / urn / ietf / params / xml / ns / yang / ietf / netconf / acm / rev180214 / nacm / rule / list / rule / rule / type / NotificationNotificationNameBuilder.java
diff --git a/netconf/models/ietf-netconf-acm/src/main/java/org/opendaylight/yang/gen/v1/urn/ietf/params/xml/ns/yang/ietf/netconf/acm/rev180214/nacm/rule/list/rule/rule/type/NotificationNotificationNameBuilder.java b/netconf/models/ietf-netconf-acm/src/main/java/org/opendaylight/yang/gen/v1/urn/ietf/params/xml/ns/yang/ietf/netconf/acm/rev180214/nacm/rule/list/rule/rule/type/NotificationNotificationNameBuilder.java
new file mode 100644 (file)
index 0000000..4aa1d81
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2019 PATHEON.tech, s.r.o. 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.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.nacm.rule.list.rule.rule.type;
+
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.MatchallStringType;
+import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.nacm.rule.list.rule.rule.type.Notification.NotificationName;
+
+public class NotificationNotificationNameBuilder {
+    private static final NotificationName MATCH_ALL = new NotificationName(new MatchallStringType("*"));
+
+    private NotificationNotificationNameBuilder() {
+        //Exists only to defeat instantiation.
+    }
+
+    public static NotificationName getDefaultInstance(final String defaultValue) {
+        return "*".equals(defaultValue) ? MATCH_ALL : new NotificationName(defaultValue);
+    }
+}