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 aPojoModelPathrepresenting 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 booleanequals(Object o)inthashCode()PojoModelPathValueNodeparent()StringpropertyName()StringtoPropertyString()PojoModelPathValueNodevalue(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:
parentin 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.
-
-