Class PageLayoutVisitor
- java.lang.Object
-
- com.atlassian.confluence.xhtml.api.PageLayoutVisitor
-
- All Implemented Interfaces:
XhtmlVisitor
public class PageLayoutVisitor extends Object implements XhtmlVisitor
Provides a handler for detecting if a page contains an atlassian page layout. If so the layout name will be parsed out- Since:
- 4.2
-
-
Constructor Summary
Constructors Constructor Description PageLayoutVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPageLayout2CellCount()
int
getPageLayout2RowCount()
String
getPageLayoutOneType()
boolean
handle(XMLEvent xmlEvent, ConversionContext context)
Called on each XMLEvent during a parse of an XHTML document.
-
-
-
Method Detail
-
handle
public boolean handle(XMLEvent xmlEvent, ConversionContext context)
Description copied from interface:XhtmlVisitor
Called on each XMLEvent during a parse of an XHTML document.- Specified by:
handle
in interfaceXhtmlVisitor
- Returns:
- true if visiting should be halted immediately, false if it should continue
-
getPageLayoutOneType
public String getPageLayoutOneType()
-
getPageLayout2CellCount
public int getPageLayout2CellCount()
-
getPageLayout2RowCount
public int getPageLayout2RowCount()
-
-