Class TagStack
- java.lang.Object
-
- org.xwiki.rendering.wikimodel.xhtml.impl.TagStack
-
public class TagStack extends Object
Provides context for the parsing.- Since:
- 7.0RC1
- Version:
- $Id: eb49d042079aef3c86d2a20fdd49413ec412e741 $
-
-
Field Summary
Fields Modifier and Type Field Description static IgnoreElementRule
IGNORE_ALL
Represents a defaultIgnoreElementRule
that ignore all elements and cannot be switched off.
-
Constructor Summary
Constructors Constructor Description TagStack(WikiScannerContext context, Map<String,TagHandler> handlers)
TagStack(WikiScannerContext context, Map<String,TagHandler> handlers, CommentHandler commentHandler)
-
Method Summary
-
-
-
Field Detail
-
IGNORE_ALL
public static final IgnoreElementRule IGNORE_ALL
Represents a defaultIgnoreElementRule
that ignore all elements and cannot be switched off.- Since:
- 10.10RC1
-
-
Constructor Detail
-
TagStack
public TagStack(WikiScannerContext context, Map<String,TagHandler> handlers)
-
TagStack
public TagStack(WikiScannerContext context, Map<String,TagHandler> handlers, CommentHandler commentHandler)
-
-
Method Detail
-
beginElement
public void beginElement(String name, WikiParameters params)
-
endElement
public void endElement()
-
getScannerContext
public WikiScannerContext getScannerContext()
-
setScannerContext
public void setScannerContext(WikiScannerContext context)
-
pushScannerContext
public void pushScannerContext(WikiScannerContext context)
-
popScannerContext
public WikiScannerContext popScannerContext()
-
onCharacters
public void onCharacters(String content)
-
onComment
public void onComment(char[] array, int start, int length)
-
pushStackParameters
public void pushStackParameters()
-
popStackParameters
public void popStackParameters()
-
getStackParameter
@Deprecated public Object getStackParameter(String name, int index)
Deprecated.
-
setQuoteDepth
public void setQuoteDepth(int depth)
-
getQuoteDepth
public int getQuoteDepth()
-
isInsideBlockElement
public boolean isInsideBlockElement()
-
setInsideBlockElement
public void setInsideBlockElement()
-
unsetInsideBlockElement
public void unsetInsideBlockElement()
-
setDocumentParent
public void setDocumentParent()
-
getDocumentParent
public TagContext getDocumentParent()
-
pushListStyle
public String pushListStyle(char style)
-
popListStyle
public void popListStyle()
-
isEndOfList
public boolean isEndOfList()
-
resetEmptyLinesCount
public void resetEmptyLinesCount()
-
incrementEmptyLinesCount
public void incrementEmptyLinesCount()
-
getEmptyLinesCount
public int getEmptyLinesCount()
-
shouldIgnoreElements
public boolean shouldIgnoreElements()
-
setIgnoreElements
public void setIgnoreElements()
-
unsetIgnoreElements
public void unsetIgnoreElements()
-
pushIgnoreElementRule
public void pushIgnoreElementRule(IgnoreElementRule ignoreElementRule)
Push a new rule to ignore elements.- Parameters:
ignoreElementRule
- the rule to be used now.- Since:
- 10.10RC1
-
popIgnoreElementRule
public IgnoreElementRule popIgnoreElementRule()
Retrieve the last rule to ignore element.- Returns:
- the last rule that was in the stack.
- Since:
- 10.10RC1
-
-