Class PojoModelPathPropertyNode
java.lang.Object
org.hibernate.search.mapper.pojo.model.path.PojoModelPath
org.hibernate.search.mapper.pojo.model.path.PojoModelPathPropertyNode
A node in a
PojoModelPath
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
-
Field Summary
Fields inherited from class org.hibernate.search.mapper.pojo.model.path.PojoModelPath
DOT_PATTERN
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
parent()
relativize
(PojoModelPathValueNode other) value
(ContainerExtractorPath extractorPath) Methods inherited from class org.hibernate.search.mapper.pojo.model.path.PojoModelPath
builder, ofProperty, ofValue, ofValue, parse, toPathString, toString
-
Method Details
-
equals
-
hashCode
public int hashCode() -
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
- 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
- Returns:
- The name of this property.
-
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
-