if (!properties0[i].getName().equals(properties1[i].getName()) || (properties0[i].isControl() && !properties1[i].isControl()) || (properties0[i].isNavigation() && !properties1[i].isNavigation()) || ((properties0[i].isControl() || properties0[i].isNavigation()) && (((properties0[i].getValue() == null) && (properties1[i].getValue() != null)) || ((properties0[i].getValue() != null) && !properties0[i].getValue().equals(properties1[i].getValue())))))
public ProfileLocatorProperty [] next() { ProfileLocatorProperty [] properties = null; if (last >= 0) { // generate properties list to return List elements = locator.getElements(); properties = new ProfileLocatorProperty[last+1]; ProfileLocatorProperty lastElement = null; Iterator it = elements.listIterator(); for (int count = 0; (count <= last) && it.hasNext(); count++) { lastElement = (ProfileLocatorProperty)it.next(); properties[count] = lastElement; } // modify iterator state based on fallback type; // performed here to prevent multiple calls to // hasNext() from changing iterator state state = lastElement.getFallbackType(); last--; } return properties; } }
public String getLocatorPath(ProfileLocatorProperty [] properties) { StringBuffer key = new StringBuffer(); if (properties != null) for (int i = 0; (i < properties.length); i++) { if (i > 0) key.append(ProfileLocator.PATH_SEPARATOR); key.append(properties[i].getName()); key.append(ProfileLocator.PATH_SEPARATOR); key.append(properties[i].getValue()); } return key.toString(); }
for (int i = 0, limit = properties.length; (i < limit); i++) if (!properties[i].isControl() && !properties[i].isNavigation() && (properties[i].getValue() != null)) String locatorPath = properties[i].getValue();
for (int i = 0; (i < properties.length); i++) if (!properties[i].isControl() && !properties[i].isNavigation()) String path = properties[i].getValue(); if (path != null)
for (int i = 0; (i < properties.length); i++) if (properties[i].isNavigation()) if (properties[i].getValue() != null) pathRoot = properties[i].getValue(); int pathRootDepth = 0; if (!pathRoot.startsWith(Folder.PATH_SEPARATOR)) else if (properties[i].isControl()) if (properties[i].getValue() != null) String propertyName = properties[i].getName().toLowerCase(); String propertyValue = properties[i].getValue();