af9bf73349e1469f73ee3c1b591fb61a8731bb06
[yangtools.git] / benchmarks / src / main / java / org / opendaylight / yangtools / yang / data / impl / tree / BenchmarkModel.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.yangtools.yang.data.impl.tree;
9
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.SchemaContext;
14 import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
15
16 /**
17  * @author Lukas Sedlak <lsedlak@cisco.com>
18  */
19 final class BenchmarkModel {
20     private static final QName TEST_QNAME = QName.create(
21         "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test", "2014-03-13", "test").intern();
22     static final NodeIdentifier TEST = NodeIdentifier.create(TEST_QNAME);
23     static final YangInstanceIdentifier TEST_PATH = YangInstanceIdentifier.create(TEST);
24
25     static final QName OUTER_LIST_QNAME = QName.create(TEST_QNAME, "outer-list").intern();
26     static final NodeIdentifier OUTER_LIST = NodeIdentifier.create(OUTER_LIST_QNAME);
27     static final YangInstanceIdentifier OUTER_LIST_PATH = YangInstanceIdentifier.create(TEST, OUTER_LIST);
28
29     static final QName INNER_LIST_QNAME = QName.create(TEST_QNAME, "inner-list").intern();
30     static final NodeIdentifier INNER_LIST = NodeIdentifier.create(INNER_LIST_QNAME);
31
32     static final QName OUTER_CHOICE_QNAME = QName.create(TEST_QNAME, "outer-choice").intern();
33     static final QName ID_QNAME = QName.create(TEST_QNAME, "id").intern();
34     static final QName NAME_QNAME = QName.create(TEST_QNAME, "name").intern();
35     static final QName VALUE_QNAME = QName.create(TEST_QNAME, "value".intern());
36
37     private BenchmarkModel() {
38
39     }
40
41     static SchemaContext createTestContext() {
42         return YangParserTestUtils.parseYangResource("/odl-datastore-test.yang");
43     }
44 }