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