Class PojoModelPathPropertyNode
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.path.PojoModelPath
-
- org.hibernate.search.mapper.pojo.model.path.PojoModelPathPropertyNode
-
public final class PojoModelPathPropertyNode extends PojoModelPath
A node in aPojoModelPath
representing a property.Property nodes represent the property with no indication as to how its value(s) are extracted: 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 a
PojoModelPathValueNode
.
-
-
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)
int
hashCode()
PojoModelPathValueNode
parent()
String
propertyName()
Optional<PojoModelPathPropertyNode>
relativize(PojoModelPathValueNode other)
String
toPropertyString()
PojoModelPathValueNode
value(ContainerExtractorPath extractorPath)
-
Methods inherited from class org.hibernate.search.mapper.pojo.model.path.PojoModelPath
builder, ofProperty, ofValue, ofValue, parse, toPathString, toString
-
-
-
-
Method Detail
-
parent
public PojoModelPathValueNode parent()
- Specified by:
parent
in classPojoModelPath
- Returns:
- The model path to the value from which the property represented by this node is extracted.
May be
null
.
-
value
public PojoModelPathValueNode value(ContainerExtractorPath extractorPath)
- Parameters:
extractorPath
- The extractor path allowing extraction of a value from this property. The extractor path 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.
-
propertyName
public String propertyName()
- Returns:
- The name of this property.
-
toPropertyString
public String toPropertyString()
- Returns:
- A simple string representation of this path taking into account property nodes only,
in the form
propertyA.propertyB.propertyC
.Completely ignores container extractors.
-
relativize
public Optional<PojoModelPathPropertyNode> relativize(PojoModelPathValueNode other)
-
-