ElementPath with matching operations such as
fullPathMatch(ElementPath),
getPrefixMatchLength(ElementPath) and
getTailMatchLength(ElementPath).
Parts of the path may contain '*' for wildcard matching.
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public boolean | |
| public boolean | |
| public int | getPrefixMatchLength(ElementPath p)
Returns the number of "prefix" components that this pattern has in common with the pattern p passed as parameter. |
| public int | getTailMatchLength(ElementPath p)
Returns the number of "tail" components that this pattern has in common with the pattern p passed as parameter. |
| public int | |
| public boolean |
| ElementSelector | back to summary |
|---|---|
| public ElementSelector() | |
| ElementSelector | back to summary |
|---|---|
| public ElementSelector(List<String> list) | |
| ElementSelector | back to summary |
|---|---|
| public ElementSelector(String p) Build an elementPath from a string. Note that "/x" is considered equivalent to "x" and to "x/" | |
| equalityCheck | back to summary |
|---|---|
| private boolean equalityCheck(String x, String y) Hides ch. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides ch. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fullPathMatch | back to summary |
|---|---|
| public boolean fullPathMatch(ElementPath path) | |
| getPrefixMatchLength | back to summary |
|---|---|
| public int getPrefixMatchLength(ElementPath p) Returns the number of "prefix" components that this pattern has in common with the pattern p passed as parameter. By "prefix" components we mean the components at the beginning of the pattern. | |
| getTailMatchLength | back to summary |
|---|---|
| public int getTailMatchLength(ElementPath p) Returns the number of "tail" components that this pattern has in common with the pattern p passed as parameter. By "tail" components we mean the components at the end of the pattern. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isContainedIn | back to summary |
|---|---|
| public boolean isContainedIn(ElementPath p) | |