-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceContent.ElementRepresents a single semantic content element part of a publication.
public interfaceContent.TextualElementAn element which can be represented as human-readable text.
The default implementation returns the first accessibility label associated to the element.
public interfaceContent.EmbeddedElementAn element referencing an embedded external resource.
public final classContent.AudioElementAn audio clip.
public final classContent.VideoElementA video clip.
public final classContent.ImageElementA bitmap image.
public final classContent.TextElementA text element.
public final classContent.AttributeAn attribute is an arbitrary key-value metadata pair.
public final classContent.AttributeKeyAn attribute key uniquely an attribute.
The V phantom type is there to perform static type checking when requesting an attribute.
public interfaceContent.AttributesHolderAn object associated with a list of attributes.
public interfaceContent.IteratorIterates through a list of Element items asynchronously.
hasNext and hasPrevious refer to the last element computed by a previous call to any of both methods.
-
Method Summary
Modifier and Type Method Description Stringtext(String separator)Extracts the full raw text, or returns null if no text content can be found. abstract Content.Iteratoriterator()Creates a new iterator for this content. List<Content.Element>elements()Returns all the elements as a list. -
-
Method Detail
-
text
String text(String separator)
Extracts the full raw text, or returns null if no text content can be found.
- Parameters:
separator- Separator to use between individual elements.
-
iterator
abstract Content.Iterator iterator()
Creates a new iterator for this content.
-
elements
List<Content.Element> elements()
Returns all the elements as a list.
-
-
-
-