ac2d9c3e64895e198b43d9954eaade30762dbb0b
[netconf.git] / restconf / restconf-common / src / main / java / org / opendaylight / restconf / common / schema / SchemaExportContext.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.restconf.common.schema;
9
10 import org.opendaylight.mdsal.dom.api.DOMYangTextSourceProvider;
11 import org.opendaylight.yangtools.yang.model.api.Module;
12 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
13
14 public class SchemaExportContext {
15
16     private final SchemaContext schemaContext;
17     private final Module module;
18     private final DOMYangTextSourceProvider sourceProvider;
19
20     public SchemaExportContext(final SchemaContext ctx, final Module module,
21                                final DOMYangTextSourceProvider sourceProvider) {
22         schemaContext = ctx;
23         this.module = module;
24         this.sourceProvider = sourceProvider;
25     }
26
27     public SchemaContext getSchemaContext() {
28         return schemaContext;
29     }
30
31     public Module getModule() {
32         return module;
33     }
34
35     public DOMYangTextSourceProvider getSourceProvider() {
36         return sourceProvider;
37     }
38 }