import org.opendaylight.yangtools.concepts.Immutable;
import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeStreamWriter;
import org.opendaylight.yangtools.yang.data.api.schema.stream.NormalizedNodeWriter;
-import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider;
+import org.opendaylight.yangtools.yang.model.api.EffectiveStatementInference;
/**
* The contents of an {@code anydata} node in a normalized format. This representation acts as a schema-bound bridge
*/
@Beta
@NonNullByDefault
-public interface NormalizedAnydata extends Immutable, SchemaContextProvider {
+public interface NormalizedAnydata extends Immutable {
+ /**
+ * Return the {@link EffectiveStatementInference} which describes the structure returned by {@link #getData()}.
+ *
+ * @return An {@link EffectiveStatementInference}
+ */
+ EffectiveStatementInference getInference();
- DataSchemaNode getContextNode();
-
- NormalizedNode<?, ?> getData();
+ /**
+ * Return the {@link NormalizedNode} representation of this node's data. Information about the corresponding schema
+ * is available via {@link #getInference()}.
+ *
+ * @return A {@link NormalizedNode}
+ */
+ NormalizedNode getData();
default void writeTo(final NormalizedNodeStreamWriter writer) throws IOException {
writeTo(writer, true);