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, toString
public ElementSelector()
public ElementSelector(String p)
p
- element pathpublic boolean fullPathMatch(ElementPath path)
public int getTailMatchLength(ElementPath p)
p
- element pathpublic boolean isContainedIn(ElementPath p)
public int getPrefixMatchLength(ElementPath p)
p
- element pathpublic boolean equals(Object o)
equals
in class ElementPath
Copyright © 2005–2014 QOS.ch. All rights reserved.