-
- All Implemented Interfaces:
-
org.readium.r2.shared.publication.services.content.Content.AttributesHolder
public final class Content.TextElement.Segment implements Content.AttributesHolder
Ranged portion of text with associated attributes.
-
-
Field Summary
Fields Modifier and Type Field Description private final Locatorlocatorprivate final Stringtextprivate final List<Content.Attribute<?>>attributesprivate final Languagelanguageprivate final StringaccessibilityLabel
-
Constructor Summary
Constructors Constructor Description Content.TextElement.Segment(Locator locator, String text, List<Content.Attribute<?>> attributes)
-
Method Summary
Modifier and Type Method Description final LocatorgetLocator()final StringgetText()List<Content.Attribute<?>>getAttributes()LanguagegetLanguage()StringgetAccessibilityLabel()-
-
Constructor Detail
-
Content.TextElement.Segment
Content.TextElement.Segment(Locator locator, String text, List<Content.Attribute<?>> attributes)
- Parameters:
locator- Locator to the segment of text.text- Text in the segment.attributes- Attributes associated with this segment, e.g.
-
-
Method Detail
-
getLocator
final Locator getLocator()
-
getAttributes
List<Content.Attribute<?>> getAttributes()
-
getLanguage
Language getLanguage()
-
getAccessibilityLabel
String getAccessibilityLabel()
-
-
-
-