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;
10 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.GroupNameType;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.MatchallStringType;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.nacm.RuleList.Group;
14 public class RuleListGroupBuilder {
15 private static final Group MATCH_ALL = new Group(new MatchallStringType("*"));
17 private RuleListGroupBuilder() {
18 //Exists only to defeat instantiation.
21 public static Group getDefaultInstance(final String defaultValue) {
22 return "*".equals(defaultValue) ? MATCH_ALL : new Group(new GroupNameType(defaultValue));