--- old/core/JemmyCore/src/org/jemmy/lookup/AbstractLookup.java 2018-05-20 10:12:01.850144033 +0200 +++ new/core/JemmyCore/src/org/jemmy/lookup/AbstractLookup.java 2018-05-20 10:12:01.790142202 +0200 @@ -41,7 +41,7 @@ * implementation and allow it to handle sub-lookups creation. * @see AbstractLookup#lookup(org.jemmy.lookup.LookupCriteria) * @see AbstractLookup#lookup(java.lang.Class, org.jemmy.lookup.LookupCriteria) - * @param + * @param todo document * @author shura */ public abstract class AbstractLookup extends AbstractParent implements Lookup { @@ -71,10 +71,10 @@ * This actual lookup logic is delegated to getCildren(java.lang.Object) * method * @see AbstractLookup#getChildren(java.lang.Object) - * @param env - * @param controlClass - * @param criteria - * @param wrapper + * @param env todo document + * @param controlClass todo document + * @param criteria todo document + * @param wrapper todo document */ public AbstractLookup(Environment env, Class controlClass, LookupCriteria criteria, Wrapper wrapper) { this.env = env; @@ -88,24 +88,15 @@ return wrapper; } - /** - * - * @return - */ LookupCriteria getCriteria() { return criteria; } - /** - * - * @return - */ Environment getEnvironment() { return env; } /** - * * @return The class of the sount controls. */ Class getControlClass() { @@ -123,7 +114,7 @@ /** * Waits for certain number of controls to fit criteria. * Depending on how outputs set, prints out info about the lookup. - * @param count + * @param count todo document * @return this, after the count of found number of found controls * exceeds the required. * @see AbstractLookup#OUTPUT @@ -152,7 +143,7 @@ * Gets the number of controls which fit criteria. * Depending on how outputs set, prints out info about the lookup. * @see AbstractLookup#OUTPUT - * @return + * @return todo document */ public int size() { getEnvironment().getOutput(OUTPUT).println("Getting number of controls of " + clss.getName() + " class fitting criteria " + criteria); @@ -160,9 +151,6 @@ return found.size(); } - /** - * - */ void refresh() { found.clear(); List childen = getChildren(null); @@ -188,55 +176,46 @@ } } - /** - * - * @param control - * @return - */ protected boolean check(CONTROL control) { return control != null && criteria.check(control); } /** * Returns Wrap of the control with specified index - * @param index + * @param index todo document * @return Wrap */ public Wrap wrap(int index) { return instantiate(get(index)); } - /** - * - * @return - */ public Wrap wrap() { return wrap(0); } /** - * @{inheritDoc} + * {@inheritDoc} */ public INTERFACE as(int index, Class interfaceClass) { return wrap(index).as(interfaceClass); } /** - * @{inheritDoc} + * {@inheritDoc} */ public INTERFACE as(Class interfaceClass) { return as(0, interfaceClass); } /** - * @{inheritDoc} + * {@inheritDoc} */ public > INTERFACE as(int index, Class interfaceClass, Class type) { return wrap(index).as(interfaceClass, type); } /** - * @{inheritDoc} + * {@inheritDoc} */ public > INTERFACE as(Class interfaceClass, Class type) { return as(0, interfaceClass, type); @@ -248,24 +227,16 @@ } /** - * @{inheritDoc} + * {@inheritDoc} */ public CONTROL get() { return get(0); } - /** - * - * @return - */ List getFound() { return found; } - /** - * - * @return - */ public Class getType() { return getControlClass(); } @@ -275,7 +246,7 @@ * List could contain any type of objects - not just CONTROL. * @param subParent - one of the elements in the hierarchy reflected by this lookup. * If null passed - first level children are expected. - * @return + * @return todo document */ abstract List getChildren(Object subParent); @@ -295,19 +266,13 @@ /** * Wraps the control with a Wrap class. * @see Wrap - * @param wrap + * @param control todo document * @return Wrap */ private Wrap instantiate(CONTROL control) { return wrapper.wrap(clss, control); } - /** - * - * @param out - * @param obj - * @param prefix - */ protected void dumpOne(PrintStream out, CONTROL obj, String prefix) { Map data = getWrapper().wrap(getControlClass(), getControlClass().cast(obj)).getPropertiesQiuet(); out.println(prefix + "+-" + buildClassChain(obj.getClass())); @@ -321,11 +286,6 @@ } } - /** - * - * @param out - * @param lookup - */ protected abstract void dump(PrintStream out, Lookup lookup); public void dump(PrintStream out) {