* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+package org.opendaylight.yangtools.yang.parser.stmt.anyxmlschema;
-package org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective;
-
-import com.google.common.annotations.Beta;
+import com.google.common.annotations.VisibleForTesting;
import java.util.Objects;
import javax.annotation.Nonnull;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier;
-import org.opendaylight.yangtools.yang.model.api.stmt.UnknownStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
+import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.UnknownEffectiveStatementBase;
-@Beta
-public final class AnyxmlSchemaLocationEffectiveStatementImpl extends
- UnknownEffectiveStatementBase<SchemaNodeIdentifier> {
+@VisibleForTesting
+public final class AnyxmlSchemaLocationEffectiveStatementImpl
+ extends UnknownEffectiveStatementBase<SchemaNodeIdentifier, AnyxmlSchemaLocationStatement>
+ implements AnyxmlSchemaLocationEffectiveStatement {
private final SchemaPath path;
- public AnyxmlSchemaLocationEffectiveStatementImpl(
- final StmtContext<SchemaNodeIdentifier, UnknownStatement<SchemaNodeIdentifier>, ?> ctx) {
+ AnyxmlSchemaLocationEffectiveStatementImpl(
+ final StmtContext<SchemaNodeIdentifier, AnyxmlSchemaLocationStatement, ?> ctx) {
super(ctx);
-
path = ctx.getParentContext().getSchemaPath().get().createChild(getNodeType());
}