*/
package org.opendaylight.yangtools.yang.data.impl.schema.tree;
-import com.google.common.base.Optional;
-import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
+import java.util.Optional;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
import org.opendaylight.yangtools.yang.data.api.schema.tree.spi.TreeNode;
}
@Override
- Optional<TreeNode> apply(final ModifiedNode modification,
- final Optional<TreeNode> storeMeta, final Version version) {
- throw new IllegalStateException("Schema Context is not available.");
+ Optional<TreeNode> apply(final ModifiedNode modification, final Optional<TreeNode> storeMeta,
+ final Version version) {
+ throw ise();
}
@Override
- void checkApplicable(final YangInstanceIdentifier path,final NodeModification modification, final Optional<TreeNode> storeMetadata) {
- throw new IllegalStateException("Schema Context is not available.");
+ void checkApplicable(final ModificationPath path, final NodeModification modification,
+ final Optional<TreeNode> storeMetadata, final Version version) {
+ throw ise();
}
@Override
public Optional<ModificationApplyOperation> getChild(final PathArgument child) {
- throw new IllegalStateException("Schema Context is not available.");
+ throw ise();
}
@Override
- void verifyStructure(final NormalizedNode<?, ?> modification) {
- throw new IllegalStateException("Schema Context is not available.");
+ void verifyStructure(final NormalizedNode<?, ?> modification, final boolean verifyChildren) {
+ throw ise();
}
@Override
ChildTrackingPolicy getChildPolicy() {
- throw new IllegalStateException("Schema Context is not available.");
+ throw ise();
}
-}
\ No newline at end of file
+
+ @Override
+ void mergeIntoModifiedNode(final ModifiedNode node, final NormalizedNode<?, ?> value, final Version version) {
+ throw ise();
+ }
+
+ @Override
+ void recursivelyVerifyStructure(final NormalizedNode<?, ?> value) {
+ throw ise();
+ }
+
+ private static IllegalStateException ise() {
+ return new IllegalStateException("Schema Context is not available.");
+ }
+}