2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.controller.model.parser.builder;
\r
10 import java.net.URI;
\r
11 import java.util.ArrayList;
\r
12 import java.util.List;
\r
14 import org.opendaylight.controller.yang.common.QName;
\r
15 import org.opendaylight.controller.yang.model.api.SchemaPath;
\r
18 public class TestUtils {
\r
20 private TestUtils () {
\r
23 public static SchemaPath createSchemaPath(boolean absolute, URI namespace, String... path) {
\r
24 List<QName> names = new ArrayList<QName>();
\r
26 for(String pathPart : path) {
\r
27 qname = new QName(namespace, pathPart);
\r
30 return new SchemaPath(names, absolute);
\r