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