2 * Copyright (c) 2019 PATHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.nacm.rule.list.rule.rule.type;
10 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.MatchallStringType;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.nacm.rule.list.rule.rule.type.Notification.NotificationName;
13 public class NotificationNotificationNameBuilder {
14 private static final NotificationName MATCH_ALL = new NotificationName(new MatchallStringType("*"));
16 private NotificationNotificationNameBuilder() {
17 //Exists only to defeat instantiation.
20 public static NotificationName getDefaultInstance(final String defaultValue) {
21 return "*".equals(defaultValue) ? MATCH_ALL : new NotificationName(defaultValue);