wicket.markup
Class MarkupFragment

java.lang.Object
  extended by wicket.markup.MarkupFragment

public class MarkupFragment
extends java.lang.Object

A list of markup elements associated with a Markup. Might be all elements of a markup resource, might be just the elements associated with a specific tag.

Author:
Juergen Donnerstag
See Also:
Markup, MarkupElement, ComponentTag, RawMarkup

Field Summary
static MarkupFragment NO_MARKUP_FRAGMENT
          Placeholder that indicates no markup
 
Method Summary
 MarkupElement get(int index)
          For Wicket it would be sufficient for this method to be package protected.
 Markup getMarkup()
          Gets the associate markup
 java.util.Iterator iterator()
          Create an iterator for the markup elements
 java.util.Iterator iterator(int startIndex, java.lang.Class matchClass)
          Create an iterator for the tags being an istance of 'matchClass'
 int size()
          For Wicket it would be sufficient for this method to be package protected.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_MARKUP_FRAGMENT

public static final MarkupFragment NO_MARKUP_FRAGMENT
Placeholder that indicates no markup

Method Detail

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String representation of markup list

get

public final MarkupElement get(int index)
For Wicket it would be sufficient for this method to be package protected. However to allow wicket-bench easy access to the information ...

Parameters:
index - Index into markup list
Returns:
Markup element

getMarkup

public final Markup getMarkup()
Gets the associate markup

Returns:
The associated markup

size

public int size()
For Wicket it would be sufficient for this method to be package protected. However to allow wicket-bench easy access to the information ...

Returns:
Number of markup elements

iterator

public final java.util.Iterator iterator()
Create an iterator for the markup elements

Returns:
Iterator

iterator

public final java.util.Iterator iterator(int startIndex,
                                         java.lang.Class matchClass)
Create an iterator for the tags being an istance of 'matchClass'

Parameters:
startIndex - The index to start with
matchClass - Iterate over elements matching the class
Returns:
Iterator


Copyright © 2004-2007 Wicket developers. All Rights Reserved.