Package 

Interface Content

  • All Implemented Interfaces:

    
    public interface Content
    
                        

    Provides an iterable list of content Elements.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface Content.Element

      Represents a single semantic content element part of a publication.

      public interface Content.TextualElement

      An element which can be represented as human-readable text.

      The default implementation returns the first accessibility label associated to the element.

      public interface Content.EmbeddedElement

      An element referencing an embedded external resource.

      public final class Content.AudioElement

      An audio clip.

      public final class Content.VideoElement

      A video clip.

      public final class Content.ImageElement

      A bitmap image.

      public final class Content.TextElement

      A text element.

      public final class Content.Attribute

      An attribute is an arbitrary key-value metadata pair.

      public final class Content.AttributeKey

      An attribute key uniquely an attribute.

      The V phantom type is there to perform static type checking when requesting an attribute.

      public interface Content.AttributesHolder

      An object associated with a list of attributes.

      public interface Content.Iterator

      Iterates 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String text(String separator) Extracts the full raw text, or returns null if no text content can be found.
      abstract Content.Iterator iterator() Creates a new iterator for this content.
      List<Content.Element> elements() Returns all the elements as a list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.