public abstract class PojoModelPath extends Object
For instance the path could be:
property "propertyOfA" => extractor "MapValueExtractor" => property "propertyOfB"
Meaning: extract property "propertyOfA", then extract values using "MapValueExtractor",
then for each value extract property "propertyOfB".
| Modifier and Type | Class and Description |
|---|---|
static class |
PojoModelPath.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PojoModelPath.Builder |
builder() |
abstract PojoModelPath |
getParent() |
static PojoModelPathPropertyNode |
ofProperty(String propertyName) |
static PojoModelPathValueNode |
ofValue(String propertyName) |
static PojoModelPathValueNode |
ofValue(String propertyName,
ContainerExtractorPath extractorPath) |
static PojoModelPathValueNode |
parse(String dotSeparatedPath) |
String |
toPathString() |
String |
toString() |
public static PojoModelPath.Builder builder()
PojoModelPath
by specifying its components (property, container extractors) one by one.public static PojoModelPathPropertyNode ofProperty(String propertyName)
propertyName - The name of a POJO property.public static PojoModelPathValueNode ofValue(String propertyName)
propertyName - The name of a POJO property.PojoModelPath from a POJO to the value(s) of the property with the given name.
Default container extractors are applied to the property,
so that for example a path to a List property will in fact point to the elements of that list.public static PojoModelPathValueNode ofValue(String propertyName, ContainerExtractorPath extractorPath)
propertyName - The name of a POJO property.extractorPath - A container extractor path.PojoModelPath from a POJO to the value(s) of the property with the given name.
The extractors represented by the given extractor path are applied to the property,
so that for example a path to a List property may in fact point to the elements of that list.public static PojoModelPathValueNode parse(String dotSeparatedPath)
dotSeparatedPath - A dot-separated path, such as "myProperty.someNestedProperty".PojoModelPath representing the same path,
which the default container extractors applied to each property,
so that for example a path to a List property will in fact point to the elements of that list.public final String toPathString()
propertyA<containerExtractorPathA>.propertyB<containerExtractorPathB>.propertyC<containerExtractorPathB>.public abstract PojoModelPath getParent()
null.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.