import org.opendaylight.yangtools.yang.common.YangVersion;
import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
import org.opendaylight.yangtools.yang.model.api.meta.StatementSourceReference;
-import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
-import org.opendaylight.yangtools.yang.model.repo.api.YinDomSchemaSource;
-import org.opendaylight.yangtools.yang.model.repo.api.YinXmlSchemaSource;
+import org.opendaylight.yangtools.yang.model.api.source.SourceIdentifier;
+import org.opendaylight.yangtools.yang.model.spi.source.YinDomSource;
+import org.opendaylight.yangtools.yang.model.spi.source.YinXmlSource;
import org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase;
import org.opendaylight.yangtools.yang.parser.spi.source.PrefixResolver;
import org.opendaylight.yangtools.yang.parser.spi.source.QNameToStatementDefinition;
import org.w3c.dom.NodeList;
/**
- * A {@link StatementStreamSource} based on a {@link YinXmlSchemaSource}. Internal implementation works on top
- * of {@link YinDomSchemaSource} and its DOM document.
+ * A {@link StatementStreamSource} based on a {@link YinXmlSource}. Internal implementation works on top
+ * of {@link YinDomSource} and its DOM document.
*
* @author Robert Varga
*/
});
private final Node root;
- private YinStatementStreamSource(final SourceIdentifier identifier, final Node root) {
- super(identifier);
+ private YinStatementStreamSource(final SourceIdentifier sourceId, final Node root) {
+ super(sourceId);
this.root = requireNonNull(root);
}
- public static StatementStreamSource create(final YinXmlSchemaSource source) throws TransformerException {
- return create(YinDomSchemaSource.transform(source));
+ public static StatementStreamSource create(final YinXmlSource source) throws TransformerException {
+ return create(YinDomSource.transform(source));
}
- public static StatementStreamSource create(final YinDomSchemaSource source) {
- return new YinStatementStreamSource(source.getIdentifier(), source.getSource().getNode());
+ public static StatementStreamSource create(final YinDomSource source) {
+ return new YinStatementStreamSource(source.sourceId(), source.getSource().getNode());
}
private static StatementDefinition getValidDefinition(final Node node, final StatementWriter writer,