2 * Copyright (c) 2018 Pantheon Technologies, 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.yangtools.yang.data.impl.leafref;
10 import static java.util.Objects.requireNonNull;
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;
17 public class SimpleQNameWithPredicate extends AbstractQNameWithPredicate {
18 private final QName qname;
20 SimpleQNameWithPredicate(final QName qname) {
21 this.qname = requireNonNull(qname);
25 public List<QNamePredicate> getQNamePredicates() {
26 return ImmutableList.of();
30 public QNameModule getModuleQname() {
31 return qname.getModule();
35 public String getLocalName() {
36 return qname.getLocalName();
40 public QName getQName() {