Do not pretty-print body class
[yangtools.git] / data / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / leafref / SimpleQNameWithPredicate.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, 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.yangtools.yang.data.impl.leafref;
9
10 import static java.util.Objects.requireNonNull;
11
12 import com.google.common.collect.ImmutableList;
13 import java.util.List;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.common.QNameModule;
16
17 public class SimpleQNameWithPredicate extends AbstractQNameWithPredicate {
18     private final QName qname;
19
20     SimpleQNameWithPredicate(final QName qname) {
21         this.qname = requireNonNull(qname);
22     }
23
24     @Override
25     public List<QNamePredicate> getQNamePredicates() {
26         return ImmutableList.of();
27     }
28
29     @Override
30     public QNameModule getModuleQname() {
31         return qname.getModule();
32     }
33
34     @Override
35     public String getLocalName() {
36         return qname.getLocalName();
37     }
38
39     @Override
40     public QName getQName() {
41         return qname;
42     }
43 }