2 * Copyright (c) 2013 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.controller.yang.model.parser.builder.impl;
11 import java.util.ArrayList;
12 import java.util.List;
14 import org.opendaylight.controller.yang.common.QName;
15 import org.opendaylight.controller.yang.model.api.SchemaPath;
17 public class TestUtils {
22 public static SchemaPath createSchemaPath(boolean absolute, URI namespace,
24 List<QName> names = new ArrayList<QName>();
26 for (String pathPart : path) {
27 qname = new QName(namespace, pathPart);
30 return new SchemaPath(names, absolute);