Do not provide SourceIdentifiers from extensions
[yangtools.git] / yang / yang-repo-api / src / main / java / org / opendaylight / yangtools / yang / model / repo / api / YinXmlSchemaSource.java
1 /*
2  * Copyright (c) 2015 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.model.repo.api;
9
10 import com.google.common.annotations.Beta;
11 import javax.xml.transform.Source;
12 import org.eclipse.jdt.annotation.NonNull;
13
14 /**
15  * YIN text schema source representation. Exposes an RFC6020 or RFC7950 XML representation as an XML {@link Source}.
16  */
17 @Beta
18 public interface YinXmlSchemaSource extends YinSchemaSourceRepresentation {
19     @Override
20     Class<? extends YinXmlSchemaSource> getType();
21
22     /**
23      * Return an XML {@link Source} of the YIN document.
24      *
25      * @return An XML {@link Source} instance.
26      */
27     @NonNull Source getSource();
28 }