info.bliki.wiki.filter
Class WPList

java.lang.Object
  extended by info.bliki.htmlcleaner.TagToken
      extended by info.bliki.htmlcleaner.TagNode
          extended by info.bliki.wiki.tags.HTMLTag
              extended by info.bliki.wiki.tags.WPTag
                  extended by info.bliki.wiki.filter.WPList
All Implemented Interfaces:
BaseToken, java.lang.Cloneable

public class WPList
extends WPTag

Represents a Wikipedia list. See http://meta.wikimedia.org/wiki/Help:List

See Also:
WPListElement

Nested Class Summary
static class WPList.InternalList
           
 
Field Summary
static char DL_DD_CHAR
           
static char DL_DT_CHAR
           
static char OL_CHAR
           
static char UL_CHAR
           
 
Fields inherited from class info.bliki.wiki.tags.HTMLTag
NEW_LINES, XML_QNAME
 
Fields inherited from class info.bliki.htmlcleaner.TagNode
ALLOWED_ATTRIBUTES, ALLOWED_ATTRIBUTES_SET
 
Fields inherited from class info.bliki.htmlcleaner.TagToken
name, originalSource
 
Constructor Summary
WPList()
           
 
Method Summary
 boolean add(WPListElement listElement)
           
 java.lang.Object clone()
           
 WPList.InternalList getNestedElements()
           
 java.lang.String getParents()
          Get the allowed parent tags for this tag
 boolean isEmpty()
           
 boolean isReduceTokenStack()
           
 void renderHTML(ITextConverter converter, java.lang.Appendable buf, IWikiModel wikiModel)
           
 void renderPlainText(ITextConverter converter, java.lang.Appendable buf, IWikiModel wikiModel)
           
 java.lang.String toString()
           
 
Methods inherited from class info.bliki.wiki.tags.WPTag
equals
 
Methods inherited from class info.bliki.wiki.tags.HTMLTag
appendAttributes, appendEscapedAttributes, appendUnescapedAttributes, renderHTMLWithoutTag, setTemplate
 
Methods inherited from class info.bliki.htmlcleaner.TagNode
addAllowedAttribute, addAttribute, addChild, addChildren, addItemForMoving, addObjectAttribute, getAllowedAttributes, getAttributes, getBodyString, getBodyString, getChildren, getItemsToMove, getObjectAttributes, getParent, isAllowedAttribute, isFormed, makeCopy, removeAllowedAttribute, serialize, setFormed, setItemsToMove, setParent
 
Methods inherited from class info.bliki.htmlcleaner.TagToken
getName, getOriginalSource, hashCode, setName, setOriginalSource
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DL_DD_CHAR

public static final char DL_DD_CHAR
See Also:
Constant Field Values

DL_DT_CHAR

public static final char DL_DT_CHAR
See Also:
Constant Field Values

OL_CHAR

public static final char OL_CHAR
See Also:
Constant Field Values

UL_CHAR

public static final char UL_CHAR
See Also:
Constant Field Values
Constructor Detail

WPList

public WPList()
Method Detail

isEmpty

public boolean isEmpty()

add

public boolean add(WPListElement listElement)
Parameters:
listElement -
Returns:

renderHTML

public void renderHTML(ITextConverter converter,
                       java.lang.Appendable buf,
                       IWikiModel wikiModel)
                throws java.io.IOException
Overrides:
renderHTML in class WPTag
Throws:
java.io.IOException

clone

public java.lang.Object clone()
Overrides:
clone in class TagNode

isReduceTokenStack

public boolean isReduceTokenStack()
Overrides:
isReduceTokenStack in class WPTag

getParents

public java.lang.String getParents()
Description copied from class: TagToken
Get the allowed parent tags for this tag

Overrides:
getParents in class TagNode
Returns:
null if no parent tags are allowed

getNestedElements

public WPList.InternalList getNestedElements()

renderPlainText

public void renderPlainText(ITextConverter converter,
                            java.lang.Appendable buf,
                            IWikiModel wikiModel)
                     throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class TagToken


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.