2 * Copyright (c) 2014 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.tree;
10 import org.opendaylight.yangtools.yang.common.QName;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier;
13 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
14 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
17 * Benchmark model constants.
19 * @author Lukas Sedlak <lsedlak@cisco.com>
21 final class BenchmarkModel {
22 private static final QName TEST_QNAME = QName.create(
23 "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test", "2014-03-13", "test").intern();
24 static final NodeIdentifier TEST = NodeIdentifier.create(TEST_QNAME);
25 static final YangInstanceIdentifier TEST_PATH = YangInstanceIdentifier.of(TEST);
27 static final QName OUTER_LIST_QNAME = QName.create(TEST_QNAME, "outer-list").intern();
28 static final NodeIdentifier OUTER_LIST = NodeIdentifier.create(OUTER_LIST_QNAME);
29 static final YangInstanceIdentifier OUTER_LIST_PATH = YangInstanceIdentifier.of(TEST, OUTER_LIST);
31 static final QName INNER_LIST_QNAME = QName.create(TEST_QNAME, "inner-list").intern();
32 static final NodeIdentifier INNER_LIST = NodeIdentifier.create(INNER_LIST_QNAME);
34 static final QName OUTER_CHOICE_QNAME = QName.create(TEST_QNAME, "outer-choice").intern();
35 static final QName ID_QNAME = QName.create(TEST_QNAME, "id").intern();
36 static final QName NAME_QNAME = QName.create(TEST_QNAME, "name").intern();
37 static final QName VALUE_QNAME = QName.create(TEST_QNAME, "value").intern();
39 private BenchmarkModel() {
43 static EffectiveModelContext createTestContext() {
44 return YangParserTestUtils.parseYangResource("/odl-datastore-test.yang");