net.trajano.twiff.renderer
Interface PageElementVisitor


public interface PageElementVisitor

Performs operation on a page data. Implements the Visitor pattern.

Author:
Archimedes Trajano

Method Summary
 void endComponentElement(ComponentElement element, String elementName, Map<String,String> attributes, List<PageElement> subElements)
           
 void endDocument(DocumentElement element)
          Invoked when the document ends.
 void endSimpleElement(SimpleElement element, String elementName, Map<String,String> attributes, List<PageElement> subElements)
          Ends a simple element.
 void startComponentElement(ComponentElement element, String elementName, Map<String,String> attributes, List<PageElement> subElements)
           
 void startDocument(DocumentElement element)
          Invoked when the document is started.
 void startSimpleElement(SimpleElement element, String elementName, Map<String,String> attributes, List<PageElement> subElements)
          Start of a simple element.
 void visitComponentEmptyElement(ComponentElement element, String elementName, Map<String,String> attributes)
           
 void visitProcessingInstructionElement(ProcessingInstructionElement element, String target, String data)
          Visits a processing instruction element.
 void visitSimpleEmptyElement(SimpleElement element, String elementName, Map<String,String> attributes)
          Visits an element that has no body.
 void visitStringPageElement(StringElement pageData, String content)
          Visits a StringElement object.
 

Method Detail

visitStringPageElement

void visitStringPageElement(StringElement pageData,
                            String content)
Visits a StringElement object.

Parameters:
pageData - page data.
content - content.
See Also:
PageElement.accept(PageElementVisitor)

startSimpleElement

void startSimpleElement(SimpleElement element,
                        String elementName,
                        Map<String,String> attributes,
                        List<PageElement> subElements)
Start of a simple element.

Parameters:
element -
elementName -
attributes -
subElements -

endSimpleElement

void endSimpleElement(SimpleElement element,
                      String elementName,
                      Map<String,String> attributes,
                      List<PageElement> subElements)
Ends a simple element.

Parameters:
element -
elementName -
attributes -
subElements -

visitSimpleEmptyElement

void visitSimpleEmptyElement(SimpleElement element,
                             String elementName,
                             Map<String,String> attributes)
Visits an element that has no body.

Parameters:
element -
elementName -
attributes -

visitProcessingInstructionElement

void visitProcessingInstructionElement(ProcessingInstructionElement element,
                                       String target,
                                       String data)
Visits a processing instruction element.

Parameters:
element -
target -
data -

startDocument

void startDocument(DocumentElement element)
Invoked when the document is started.

Parameters:
element -

endDocument

void endDocument(DocumentElement element)
Invoked when the document ends.

Parameters:
element -

visitComponentEmptyElement

void visitComponentEmptyElement(ComponentElement element,
                                String elementName,
                                Map<String,String> attributes)
Parameters:
element -
elementName -
attributes -

startComponentElement

void startComponentElement(ComponentElement element,
                           String elementName,
                           Map<String,String> attributes,
                           List<PageElement> subElements)
Parameters:
element -
elementName -
attributes -
subElements -

endComponentElement

void endComponentElement(ComponentElement element,
                         String elementName,
                         Map<String,String> attributes,
                         List<PageElement> subElements)
Parameters:
element -
elementName -
attributes -
subElements -


Copyright © 2004-2005 trajano.net. All Rights Reserved.