/** * Retrieve a child with the given property name relative to this node. * * @param propertyName The name of the property represented by the child node. * @return The requested child node or <code>null</code>. */ public DiffNode getChild(final String propertyName) { return getChild(new BeanPropertyElementSelector(propertyName)); }
/** * Retrieve a child that matches the given absolute path, starting from the current node. * * @param nodePath The path from the object root to the requested child node. * @return The requested child node or <code>null</code>. */ public DiffNode getChild(final NodePath nodePath) { if (parentNode != null) { return parentNode.getChild(nodePath.getElementSelectors()); } else { return getChild(nodePath.getElementSelectors()); } }
/** * Retrieve a child with the given property name relative to this node. * * @param propertyName The name of the property represented by the child node. * @return The requested child node or <code>null</code>. */ public DiffNode getChild(final String propertyName) { return getChild(new BeanPropertyElementSelector(propertyName)); }
/** * Retrieve a child that matches the given absolute path, starting from the current node. * * @param nodePath The path from the object root to the requested child node. * @return The requested child node or <code>null</code>. */ public DiffNode getChild(final NodePath nodePath) { if (parentNode != null) { return parentNode.getChild(nodePath.getElementSelectors()); } else { return getChild(nodePath.getElementSelectors()); } }