2 * Copyright (c) 2015 Cisco Systems, Inc. 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 com.google.common.collect.ImmutableList;
11 import java.util.List;
12 import org.opendaylight.yangtools.yang.common.QName;
13 import org.opendaylight.yangtools.yang.common.QNameModule;
15 final class QNameWithPredicateImpl extends AbstractQNameWithPredicate {
17 private static final long serialVersionUID = 1L;
19 private final ImmutableList<QNamePredicate> qnamePredicates;
20 private final QNameModule moduleQname;
21 private final String localName;
23 QNameWithPredicateImpl(final QNameModule moduleQname, final String localName,
24 final List<QNamePredicate> qnamePredicates) {
25 this.moduleQname = moduleQname;
26 this.localName = localName;
27 this.qnamePredicates = ImmutableList.copyOf(qnamePredicates);
31 public List<QNamePredicate> getQNamePredicates() {
32 return qnamePredicates;
36 public QNameModule getModuleQname() {
41 public String getLocalName() {
46 public QName getQName() {
47 return QName.create(moduleQname, localName);