9faadd07ad29317d1aeae8d6a378b18bc3ce3457
[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  * Benchmark model constants.
18  *
19  * @author Lukas Sedlak <lsedlak@cisco.com>
20  */
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.create(TEST);
26
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.create(TEST, OUTER_LIST);
30
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);
33
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();
38
39     private BenchmarkModel() {
40
41     }
42
43     static SchemaContext createTestContext() {
44         return YangParserTestUtils.parseYangResource("/odl-datastore-test.yang");
45     }
46 }