import com.google.common.annotations.Beta;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.TypeDefinitionAware;
/**
* Effective statement representation of 'annotation' extension defined in
*/
@Beta
public interface AnnotationEffectiveStatement extends EffectiveStatement<QName, AnnotationStatement>,
- AnnotationSchemaNode {
+ TypeDefinitionAware {
}
import com.google.common.annotations.Beta;
import org.opendaylight.yangtools.yang.common.QName;
+import org.opendaylight.yangtools.yang.model.api.stmt.DocumentedDeclaredStatement.WithStatus;
+import org.opendaylight.yangtools.yang.model.api.stmt.IfFeatureAwareDeclaredStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.TypeAwareDeclaredStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.UnknownStatement;
/**
* <a href="https://tools.ietf.org/html/rfc7952">RFC7952</a>.
*/
@Beta
-public interface AnnotationStatement extends UnknownStatement<QName> {
+public interface AnnotationStatement extends UnknownStatement<QName>, WithStatus<QName>,
+ IfFeatureAwareDeclaredStatement<QName>, TypeAwareDeclaredStatement {
}
*/
package org.opendaylight.yangtools.rfc7952.parser;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.rfc7952.model.api.AnnotationEffectiveStatement;
+import org.opendaylight.yangtools.rfc7952.model.api.AnnotationSchemaNode;
import org.opendaylight.yangtools.rfc7952.model.api.AnnotationStatement;
import org.opendaylight.yangtools.rfc7952.model.api.MetadataStatements;
import org.opendaylight.yangtools.yang.common.QName;
}
private static final class Effective extends UnknownEffectiveStatementBase<QName, AnnotationStatement>
- implements AnnotationEffectiveStatement {
+ implements AnnotationEffectiveStatement, AnnotationSchemaNode {
- private final TypeDefinition<?> type;
- private final SchemaPath path;
+ private final @NonNull TypeDefinition<?> type;
+ private final @NonNull SchemaPath path;
Effective(final StmtContext<QName, AnnotationStatement, ?> ctx) {
super(ctx);
public TypeDefinition<?> getType() {
return type;
}
+
+ @Override
+ public TypeDefinition<?> getTypeDefinition() {
+ return type;
+ }
}
private static final AnnotationStatementSupport INSTANCE = new AnnotationStatementSupport(