Class PathReferencesServiceImpl.HitIteratorImpl.IteratorHit.HitProperty
- java.lang.Object
-
- com.composum.sling.core.service.impl.PathReferencesServiceImpl.HitIteratorImpl.IteratorHit.HitProperty
-
- All Implemented Interfaces:
PathReferencesService.Hit.Property
- Enclosing class:
- PathReferencesServiceImpl.HitIteratorImpl.IteratorHit
protected class PathReferencesServiceImpl.HitIteratorImpl.IteratorHit.HitProperty extends Object implements PathReferencesService.Hit.Property
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
PathReferencesServiceImpl.HitIteratorImpl.IteratorHit.HitProperty.HitValue
-
Nested classes/interfaces inherited from interface com.composum.sling.core.service.PathReferencesService.Hit.Property
PathReferencesService.Hit.Property.Value
-
-
Constructor Summary
Constructors Constructor Description HitProperty(@NotNull String name)
HitProperty(@NotNull String name, @NotNull String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addValue(@NotNull String value, int index)
@NotNull String
getName()
@NotNull String
getText()
@Nullable PathReferencesService.Hit.Property.Value
getValue()
@NotNull List<PathReferencesService.Hit.Property.Value>
getValues()
boolean
isEmpty()
boolean
isMulti()
boolean
isRichText()
-
-
-
Field Detail
-
name
protected final String name
-
value
protected final List<PathReferencesService.Hit.Property.Value> value
-
multi
protected final boolean multi
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
getName
@NotNull public @NotNull String getName()
- Specified by:
getName
in interfacePathReferencesService.Hit.Property
- Returns:
- the name of the matching property
-
getValue
@Nullable public @Nullable PathReferencesService.Hit.Property.Value getValue()
- Specified by:
getValue
in interfacePathReferencesService.Hit.Property
- Returns:
- the first (the single one) matching value
-
getText
@NotNull public @NotNull String getText()
- Specified by:
getText
in interfacePathReferencesService.Hit.Property
- Returns:
- the content text of the first (the single one) matching value
-
getValues
@NotNull public @NotNull List<PathReferencesService.Hit.Property.Value> getValues()
- Specified by:
getValues
in interfacePathReferencesService.Hit.Property
- Returns:
- the set of matching values, maybe more than one if the property is a multi value property
-
addValue
protected void addValue(@NotNull @NotNull String value, int index)
-
isMulti
public boolean isMulti()
- Specified by:
isMulti
in interfacePathReferencesService.Hit.Property
- Returns:
- 'true', the property is a multi value property
-
isRichText
public boolean isRichText()
- Specified by:
isRichText
in interfacePathReferencesService.Hit.Property
- Returns:
- 'true', if one of the matching values seems to be a rich text value
-
-