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(java.util.List<java.lang.String> list) |
ElementSelector(java.lang.String p)
Build an elementPath from a string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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, toString
public ElementSelector()
public ElementSelector(java.util.List<java.lang.String> list)
public ElementSelector(java.lang.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(java.lang.Object o)
equals
in class ElementPath
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved