Add ietf-subscribed-notifications
[netconf.git] / model / rfc8341 / src / main / java / org / opendaylight / yang / gen / v1 / urn / ietf / params / xml / ns / yang / ietf / netconf / acm / rev180214 / nacm / RuleListGroupBuilder.java
1 /*
2  * Copyright (c) 2019 PATHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.acm.rev180214.nacm;
9
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;
13
14 public class RuleListGroupBuilder {
15     private static final Group MATCH_ALL = new Group(new MatchallStringType("*"));
16
17     private RuleListGroupBuilder() {
18         //Exists only to defeat instantiation.
19     }
20
21     public static Group getDefaultInstance(final String defaultValue) {
22         return "*".equals(defaultValue) ? MATCH_ALL : new Group(new GroupNameType(defaultValue));
23     }
24 }