public final class FieldLocation extends Object implements Comparable<FieldLocation>
| Constructor and Description |
|---|
FieldLocation(List<String> path) |
FieldLocation(String s) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FieldLocation other) |
boolean |
equals(Object obj) |
List<String> |
getDecomposedPath() |
String |
getFieldName() |
String |
getPathToUseInRules() |
boolean |
hasChild(FieldLocation child)
Returns true if this field has the given child (direct or indirect), false otherwise.
|
int |
hashCode() |
boolean |
hasParent(FieldLocation parent)
Returns true if this has the given parent (direct or indirect), false otherwise.
|
String |
shortDescription() |
String |
toString() |
public FieldLocation(String s)
public String getPathToUseInRules()
public int compareTo(FieldLocation other)
compareTo in interface Comparable<FieldLocation>public String shortDescription()
public String getFieldName()
public boolean hasParent(FieldLocation parent)
Examples:
| field | parent | hasParent?
-----------------------------------------------
| "name.first" | "name" | true
| "name.first.nickname" | "name" | true
| "name.first.nickname" | "name.first" | true
| "name" | "name" | false
| "names" | "name" | false
| "nickname" | "name" | false
| "name" | "nickname" | false
| "first.nickname" | "name" | false
parent - the field to check for being a parentpublic boolean hasChild(FieldLocation child)
Examples:
| field | child | hasChild?
-----------------------------------------------
| "name" | "name.first" | true
| "name" | "name.last" | true
| "one" | "one.two.three" | true
| "name.first" | "name " | false
| "name" | "name" | false
| "names" | "name" | false
| "nickname" | "name" | false
| "name" | "nickname" | false
| "first.nickname" | "name" | false
child - the field to check for being a childCopyright © 2025. All rights reserved.