Interface IMarkupFragment

All Superinterfaces:
Iterable<MarkupElement>
All Known Implementing Classes:
AbstractMarkupFragment, Markup, MarkupFragment, MergedMarkup

public interface IMarkupFragment extends Iterable<MarkupElement>
Any list of MarkupElements. May be the content of complete markup file or just a portion of it.
Author:
Juergen Donnerstag
See Also:
  • Method Details

    • get

      MarkupElement get(int index)
      Get the MarkupElement at the index provided.
      Parameters:
      index - Index into markup list
      Returns:
      Markup element
      Throws:
      IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())
    • getMarkupResourceStream

      Get the underlying markup resource stream, which might contain more than just the markup portion represented by the IMarkupFragment.
      Returns:
      The underlying markup resource stream
    • size

      int size()
      The number of markup elements.
      Returns:
      Number of markup elements
    • find

      Finds a markup fragment that spans a tag
      Parameters:
      wicketId - the wicket:id attribute in the tag
      Returns:
      the markup fragment that spans the complete found tag
    • toString

      String toString(boolean markupOnly)
      Parameters:
      markupOnly - True if only the markup shall be returned
      Returns:
      markup string