public TagComponent(String xPathExpression) { super(xPathExpression, ComponentUtils.emptyElementFilterList()); }
/** * // TODO the code below seems identical to * {@link io.github.seleniumquery.by.firstgen.xpath.component.ConditionSimpleComponent#mergeAsCondition(String, String)}. * Is it?? */ @Override public String mergeExpressionAsCondition(String sourceXPathExpression) { if (sourceXPathExpression.equals(MATCH_EVERYTHING_XPATH_CONDITIONAL)) { return ComponentUtils.removeBraces(this.xPathExpression); } return sourceXPathExpression + " and " + ComponentUtils.removeBraces(this.xPathExpression); }
public ConditionSimpleComponent(String xPathExpression, ElementFilter filter) { super(xPathExpression, ComponentUtils.toElementFilterList(filter)); }
public static TagComponent combine(TagComponent one, TagComponent other) { AdjacentComponent otherCopyWithModifiedType = new AdjacentComponent(other); return new TagComponent(one.xPathExpression, ComponentUtils.joinComponents(one.combinatedComponents, otherCopyWithModifiedType), ComponentUtils.joinFilters(one.elementFilterList, otherCopyWithModifiedType)); }
@Override public TagComponent cloneAndCombineTo(Combinable other) { XPathComponent otherCopy = other.cloneComponent(); return new TagComponent(this.xPathExpression, ComponentUtils.joinComponents(this.combinatedComponents, otherCopy), ComponentUtils.joinFilters(this.elementFilterList, otherCopy)); }
public static TagComponent combine(TagComponent one, TagComponent other) { DescendantGeneralComponent otherCopyWithModifiedType = new DescendantGeneralComponent(other); return new TagComponent(one.xPathExpression, ComponentUtils.joinComponents(one.combinatedComponents, otherCopyWithModifiedType), ComponentUtils.joinFilters(one.elementFilterList, otherCopyWithModifiedType)); }
public ConditionToAllComponent(String xPathExpression) { super(xPathExpression, ComponentUtils.emptyElementFilterList()); }
public static String mergeAsCondition(String sourceXPathExpression, String otherXPathExpression) { if (sourceXPathExpression.equals(MATCH_EVERYTHING_XPATH_CONDITIONAL)) { return ComponentUtils.removeBraces(otherXPathExpression); } return sourceXPathExpression + " and " + ComponentUtils.removeBraces(otherXPathExpression); }
public ConditionSimpleComponent(String xPathExpression, ElementFilter filter) { super(xPathExpression, ComponentUtils.toElementFilterList(filter)); }
public static TagComponent combine(TagComponent one, TagComponent other) { DescendantDirectComponent otherCopyWithModifiedType = new DescendantDirectComponent(other); return new TagComponent(one.xPathExpression, ComponentUtils.joinComponents(one.combinatedComponents, otherCopyWithModifiedType), ComponentUtils.joinFilters(one.elementFilterList, otherCopyWithModifiedType)); }
public TagComponent(String xPathExpression) { super(xPathExpression, ComponentUtils.emptyElementFilterList()); }
/** * // TODO the code below seems identical to * {@link io.github.seleniumquery.by.firstgen.xpath.component.ConditionSimpleComponent#mergeAsCondition(String, String)}. * Is it?? */ @Override public String mergeExpressionAsCondition(String sourceXPathExpression) { if (sourceXPathExpression.equals(MATCH_EVERYTHING_XPATH_CONDITIONAL)) { return ComponentUtils.removeBraces(this.xPathExpression); } return sourceXPathExpression + " and " + ComponentUtils.removeBraces(this.xPathExpression); }
@Override public ConditionToAllComponent cloneAndCombineTo(Combinable other) { XPathComponent otherCopy = other.cloneComponent(); return new ConditionToAllComponent(this.xPathExpression, ComponentUtils.joinComponents(this.combinatedComponents, otherCopy), ComponentUtils.joinFilters(this.elementFilterList, otherCopy)); }
public ConditionToAllComponent(String xPathExpression) { super(xPathExpression, ComponentUtils.emptyElementFilterList()); }
public static String mergeAsCondition(String sourceXPathExpression, String otherXPathExpression) { if (sourceXPathExpression.equals(MATCH_EVERYTHING_XPATH_CONDITIONAL)) { return ComponentUtils.removeBraces(otherXPathExpression); } return sourceXPathExpression + " and " + ComponentUtils.removeBraces(otherXPathExpression); }
public static TagComponent combine(TagComponent one, TagComponent other) { AdjacentComponent otherCopyWithModifiedType = new AdjacentComponent(other); return new TagComponent(one.xPathExpression, ComponentUtils.joinComponents(one.combinatedComponents, otherCopyWithModifiedType), ComponentUtils.joinFilters(one.elementFilterList, otherCopyWithModifiedType)); }
static ElementFilterList toElementFilterList(ElementFilter filter) { if (filter == ElementFilter.FILTER_NOTHING) { return emptyElementFilterList(); } ArrayList<ElementFilter> elementFilters = new ArrayList<>(); elementFilters.add(filter); return new ElementFilterList(elementFilters); }
@Override public ConditionToAllComponent cloneAndCombineTo(Combinable other) { XPathComponent otherCopy = other.cloneComponent(); return new ConditionToAllComponent(this.xPathExpression, ComponentUtils.joinComponents(this.combinatedComponents, otherCopy), ComponentUtils.joinFilters(this.elementFilterList, otherCopy)); }
static ElementFilterList toElementFilterList(ElementFilter filter) { if (filter == ElementFilter.FILTER_NOTHING) { return emptyElementFilterList(); } ArrayList<ElementFilter> elementFilters = new ArrayList<>(); elementFilters.add(filter); return new ElementFilterList(elementFilters); }
public static TagComponent combine(TagComponent one, TagComponent other) { DescendantGeneralComponent otherCopyWithModifiedType = new DescendantGeneralComponent(other); return new TagComponent(one.xPathExpression, ComponentUtils.joinComponents(one.combinatedComponents, otherCopyWithModifiedType), ComponentUtils.joinFilters(one.elementFilterList, otherCopyWithModifiedType)); }