* <b>Implementation notes</b>
* <ul>
* <li>Implementations MUST expose all nested suboperations which operates on child nodes expose via
- * {@link #getChild(PathArgument)} method.</li>
+ * {@link #findChildByArg(PathArgument)} method.</li>
* <li>Same suboperations SHOULD be used when invoked via {@link #apply(ModifiedNode, Optional, Version)},
* if applicable.</li>
* <li>There are exactly two base implementations:
* @throws IllegalArgumentException If provided NodeModification does not adhere to the
* structure.
*/
- abstract void quickVerifyStructure(NormalizedNode<?, ?> modification);
+ abstract void quickVerifyStructure(NormalizedNode modification);
/**
* Performs a full structural verification of NodeModification, such as written values / types uses right
* @throws IllegalArgumentException If provided NodeModification does not adhere to the
* structure.
*/
- abstract void fullVerifyStructure(NormalizedNode<?, ?> modification);
+ abstract void fullVerifyStructure(NormalizedNode modification);
/**
* Return the tracking policy for this node's children.
* @param value Value which should be merge into the modification
* @param version Data version as carried in the containing {@link InMemoryDataTreeModification}
*/
- abstract void mergeIntoModifiedNode(ModifiedNode modification, NormalizedNode<?, ?> value, Version version);
+ abstract void mergeIntoModifiedNode(ModifiedNode modification, NormalizedNode value, Version version);
/**
- * Returns a suboperation for specified tree node.
+ * {@inheritDoc}
*
- * @return Reference to suboperation for specified tree node, {@link Optional#empty()}
- * if suboperation is not supported for specified tree node.
+ * @return Reference to suboperation for specified tree node, {@code null} if suboperation is not supported for
+ * specified tree node.
*/
@Override
- public abstract Optional<ModificationApplyOperation> getChild(PathArgument child);
+ public abstract ModificationApplyOperation childByArg(PathArgument arg);
- abstract void recursivelyVerifyStructure(NormalizedNode<?, ?> value);
+ abstract void recursivelyVerifyStructure(NormalizedNode value);
abstract ToStringHelper addToStringAttributes(ToStringHelper helper);