--- /dev/null
+/*
+ * 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.ProtocolOperation.RpcName;
+
+public class ProtocolOperationRpcNameBuilder {
+ private static final RpcName MATCH_ALL = new RpcName(new MatchallStringType("*"));
+
+ private ProtocolOperationRpcNameBuilder() {
+ //Exists only to defeat instantiation.
+ }
+
+ public static RpcName getDefaultInstance(final String defaultValue) {
+ return "*".equals(defaultValue) ? MATCH_ALL : new RpcName(defaultValue);
+ }
+}