public class ElementSelector extends ElementPath
ElementPath with matching operations such as fullPathMatch(ElementPath),
getPrefixMatchLength(ElementPath) and getTailMatchLength(ElementPath).
Parts of the path may contain '*' for wildcard matching.
| Constructor and Description |
|---|
ElementSelector() |
ElementSelector(List<String> list) |
ElementSelector(String p)
Build an elementPath from a string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
boolean |
fullPathMatch(ElementPath path) |
int |
getPrefixMatchLength(ElementPath p)
Returns the number of "prefix" components that this pattern has in common
with the pattern p passed as parameter.
|
int |
getTailMatchLength(ElementPath p)
Returns the number of "tail" components that this pattern has in common
with the pattern p passed as parameter.
|
int |
hashCode() |
boolean |
isContainedIn(ElementPath p) |
duplicate, get, getCopyOfPartList, peekLast, pop, push, size, toStableString, toStringpublic ElementSelector()
public ElementSelector(String p)
public boolean fullPathMatch(ElementPath path)
public int getTailMatchLength(ElementPath p)
public boolean isContainedIn(ElementPath p)
public int getPrefixMatchLength(ElementPath p)
public boolean equals(Object o)
equals in class ElementPathCopyright © 2005–2017 QOS.ch. All rights reserved.