Fixed some major sonar issues in yang-validation-tool
[yangtools.git] / restconf / restconf-client-api / src / main / java / org / opendaylight / yangtools / restconf / client / api / dto / RestRpcService.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. 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.yangtools.restconf.client.api.dto;
9
10 import com.google.common.base.Preconditions;
11 import org.opendaylight.yangtools.yang.binding.RpcService;
12
13 public final class RestRpcService implements RpcService {
14
15     private final String namespace;
16
17     public RestRpcService(String namespace){
18         Preconditions.checkNotNull(namespace);
19         this.namespace = namespace;
20     }
21
22     public String getNamespace() {
23         return namespace;
24     }
25 }