@Override
public Optional<ModificationApplyOperation> getChild(final PathArgument child) {
- throw new UnsupportedOperationException("Node " + schema.getPath()
- + " is leaf type node. Child nodes not allowed");
+ throw new UnsupportedOperationException("Node " + schema + " is leaf type node. Child nodes not allowed");
}
@Override
@Override
protected TreeNode applyTouch(final ModifiedNode modification, final TreeNode currentMeta,
final Version version) {
- throw new UnsupportedOperationException("Node " + schema.getPath()
- + " is leaf type node. Subtree change is not allowed.");
+ throw new UnsupportedOperationException("Node " + schema + " is leaf type node. "
+ + " Subtree change is not allowed.");
}
@Override