6c1433b9cbaf0df3de97731672e6421f7be6e640
[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 / RuleAccessOperationsBuilder.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.rule.list;
9
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.AccessOperations;
12
13 public class RuleAccessOperationsBuilder {
14     private static final AccessOperations MATCH_ALL = new AccessOperations(new MatchallStringType("*"));
15
16     private RuleAccessOperationsBuilder() {
17         //Exists only to defeat instantiation.
18     }
19
20     public static AccessOperations getDefaultInstance(final String defaultValue) {
21         if ("*".equals(defaultValue)) {
22             return MATCH_ALL;
23         }
24         // FIXME: parse bits
25         throw new UnsupportedOperationException("Not yet implemented");
26     }
27 }