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 static final long serialVersionUID = 1L;
20 private final QName qname;
22 SimpleQNameWithPredicate(final QName qname) {
23 this.qname = requireNonNull(qname);
27 public List<QNamePredicate> getQNamePredicates() {
28 return ImmutableList.of();
32 public QNameModule getModuleQname() {
33 return qname.getModule();
37 public String getLocalName() {
38 return qname.getLocalName();
42 public QName getQName() {