Class PathReferencesServiceImpl.HitIteratorImpl.IteratorHit
- java.lang.Object
-
- com.composum.sling.core.service.impl.PathReferencesServiceImpl.HitIteratorImpl.IteratorHit
-
- All Implemented Interfaces:
PathReferencesService.Hit
- Enclosing class:
- PathReferencesServiceImpl.HitIteratorImpl
protected class PathReferencesServiceImpl.HitIteratorImpl.IteratorHit extends Object implements PathReferencesService.Hit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
PathReferencesServiceImpl.HitIteratorImpl.IteratorHit.HitProperty
-
Nested classes/interfaces inherited from interface com.composum.sling.core.service.PathReferencesService.Hit
PathReferencesService.Hit.Property
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.sling.api.resource.Resource
resource
-
Constructor Summary
Constructors Constructor Description IteratorHit(org.apache.sling.api.resource.Resource resource)
-
Method Summary
-
-
-
Method Detail
-
getResource
@NotNull public @NotNull org.apache.sling.api.resource.Resource getResource()
- Specified by:
getResource
in interfacePathReferencesService.Hit
- Returns:
- the resource which is referencing the path
-
getPropertyMap
@NotNull protected @NotNull Map<String,PathReferencesService.Hit.Property> getPropertyMap()
-
extractMatchingValues
@NotNull protected @NotNull PathReferencesServiceImpl.HitIteratorImpl.IteratorHit.HitProperty extractMatchingValues(@NotNull @NotNull String key, @NotNull @NotNull String[] value)
-
isMatchingValue
protected boolean isMatchingValue(@NotNull @NotNull String value)
-
isMatchingValue
protected boolean isMatchingValue(@NotNull @NotNull String value, @NotNull @NotNull String path)
-
isMatchingVal
protected boolean isMatchingVal(@NotNull @NotNull String value, @NotNull @NotNull String path)
-
isMatchingText
protected boolean isMatchingText(@NotNull @NotNull String value, @NotNull @NotNull String path)
-
getProperties
@NotNull public @NotNull Iterable<PathReferencesService.Hit.Property> getProperties()
- Specified by:
getProperties
in interfacePathReferencesService.Hit
- Returns:
- the set of the names of the matching properties
-
getPropertyNames
@NotNull public @NotNull Set<String> getPropertyNames()
- Specified by:
getPropertyNames
in interfacePathReferencesService.Hit
- Returns:
- the set of the names of the matching properties
-
getProperty
@Nullable public @Nullable PathReferencesService.Hit.Property getProperty(@NotNull @NotNull String propertyName)
- Specified by:
getProperty
in interfacePathReferencesService.Hit
- Parameters:
propertyName
- the name of the matching property- Returns:
- the value of the specified property
-
getProperty
@Nullable public @Nullable PathReferencesService.Hit.Property getProperty()
- Specified by:
getProperty
in interfacePathReferencesService.Hit
- Returns:
- the first matching property (one of the matching properties)
-
getValue
@Nullable public PathReferencesService.Hit.Property.Value getValue()
- Specified by:
getValue
in interfacePathReferencesService.Hit
- Returns:
- the value of the first matching property (one of the matching values)
-
isRichText
public boolean isRichText()
- Specified by:
isRichText
in interfacePathReferencesService.Hit
- Returns:
- 'true', if the first matching value seems to be a rich text value
-
-