AnyxmlSchemaLocationNamespace should be statement-local
[yangtools.git] / yang / odlext-parser-support / src / main / java / org / opendaylight / yangtools / odlext / parser / AnyxmlSchemaLocationNamespace.java
index 78609e331691fcb65134a125b14e1f6b558822a6..8a3721d66030a46d8d6d190cd89be01ffe61cd58 100644 (file)
@@ -7,8 +7,9 @@
  */
 package org.opendaylight.yangtools.odlext.parser;
 
+import org.eclipse.jdt.annotation.NonNull;
+import org.opendaylight.yangtools.odlext.model.api.AnyxmlSchemaLocationEffectiveStatement;
 import org.opendaylight.yangtools.odlext.model.api.AnyxmlSchemaLocationStatement;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
 import org.opendaylight.yangtools.yang.model.api.meta.IdentifierNamespace;
 import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
@@ -19,7 +20,9 @@ import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
  * Source-specific mapping of prefixes to namespaces.
  */
 public interface AnyxmlSchemaLocationNamespace extends IdentifierNamespace<StatementDefinition,
-    Mutable<SchemaNodeIdentifier, AnyxmlSchemaLocationStatement,
-        EffectiveStatement<SchemaNodeIdentifier, AnyxmlSchemaLocationStatement>>> {
-    NamespaceBehaviour<?, ?, ?> BEHAVIOR = NamespaceBehaviour.treeScoped(AnyxmlSchemaLocationNamespace.class);
+        Mutable<SchemaNodeIdentifier, AnyxmlSchemaLocationStatement, AnyxmlSchemaLocationEffectiveStatement>> {
+    NamespaceBehaviour<StatementDefinition, Mutable<SchemaNodeIdentifier, AnyxmlSchemaLocationStatement,
+        AnyxmlSchemaLocationEffectiveStatement>,
+        @NonNull AnyxmlSchemaLocationNamespace> BEHAVIOUR =
+            NamespaceBehaviour.statementLocal(AnyxmlSchemaLocationNamespace.class);
 }