Class PojoModelPathValueNode
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.path.PojoModelPath
-
- org.hibernate.search.mapper.pojo.model.path.PojoModelPathValueNode
-
public final class PojoModelPathValueNode extends PojoModelPath
A node in aPojoModelPath
representing the value(s) of a property.Value node give information as to how to extract values from a property, by specifying a
ContainerExtractorPath
. That path will tell Hibernate Search whether it should it just represent how to access the property itself. To access the value(s) of that property, additional information is required, and that information is provided by aPojoModelPathValueNode
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.search.mapper.pojo.model.path.PojoModelPath
PojoModelPath.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
ContainerExtractorPath
extractorPath()
int
hashCode()
PojoModelPathPropertyNode
parent()
PojoModelPathPropertyNode
property(String propertyName)
Optional<PojoModelPathValueNode>
relativize(PojoModelPathValueNode other)
-
Methods inherited from class org.hibernate.search.mapper.pojo.model.path.PojoModelPath
builder, ofProperty, ofValue, ofValue, parse, toPathString, toString
-
-
-
-
Method Detail
-
parent
public PojoModelPathPropertyNode parent()
- Specified by:
parent
in classPojoModelPath
- Returns:
- The model path to the property from which the value represented by this node is extracted.
-
extractorPath
public ContainerExtractorPath extractorPath()
- Returns:
- The extractor path from the parent property to this value.
The path is guaranteed to be explicit (i.e. it won't be
ContainerExtractorPath.defaultExtractors()
).
-
property
public PojoModelPathPropertyNode property(String propertyName)
- Parameters:
propertyName
- The name of a property exposed by the type of this value. The property name may be invalid: no check will be performed.- Returns:
- A new path representing the current path, with an additional access to the given property at the end.
-
relativize
public Optional<PojoModelPathValueNode> relativize(PojoModelPathValueNode other)
-
-