public void add(RuleCriterion criterion, boolean isControl, boolean isNavigation, String value) { elements.add(new ProfileLocatorPropertyImpl(criterion, isControl, isNavigation, value)); }
public String getValue(String name) { Iterator iter = elements.iterator(); while (iter.hasNext()) { ProfileLocatorPropertyImpl element = (ProfileLocatorPropertyImpl)iter.next(); String elementName = element.getName(); if (elementName != null && elementName.equals(name)) { return element.getValue(); } } return null; }
public boolean isNavigation(String name) { Iterator iter = elements.iterator(); while (iter.hasNext()) { ProfileLocatorPropertyImpl element = (ProfileLocatorPropertyImpl)iter.next(); String elementName = element.getName(); if (elementName != null && elementName.equals(name)) { return element.isNavigation(); } } return false; }
public boolean isControl(String name) { Iterator iter = elements.iterator(); while (iter.hasNext()) { ProfileLocatorPropertyImpl element = (ProfileLocatorPropertyImpl)iter.next(); String elementName = element.getName(); if (elementName != null && elementName.equals(name)) { return element.isControl(); } } return false; }
public String getLocatorPath() { StringBuffer key = new StringBuffer(); ListIterator it = elements.listIterator(); while (it.hasNext()) { ProfileLocatorPropertyImpl element = (ProfileLocatorPropertyImpl)it.next(); key.append(element.getName()); key.append(ProfileLocator.PATH_SEPARATOR); key.append(element.getValue()); if (it.hasNext()) { key.append(ProfileLocator.PATH_SEPARATOR); } } return key.toString(); }
public void add(String name, boolean isControl, boolean isNavigation, String value) { elements.add(new ProfileLocatorPropertyImpl(name, isControl, isNavigation, value)); }