net.trajano.twiff.renderer
Class ProcessingInstructionElement

java.lang.Object
  extended by net.trajano.twiff.renderer.ProcessingInstructionElement
All Implemented Interfaces:
PageElement

public class ProcessingInstructionElement
extends Object
implements PageElement

A page data that contains a string.

Author:
Archimedes Trajano

Constructor Summary
ProcessingInstructionElement(String target, String data)
          Constructs the element.
 
Method Summary
 void accept(PageElementVisitor visitor)
          Accepts a visitor that should visit the page data.
 int getColumnNumber()
          Return the column number where the current page element ends.
 String getData()
          Returns the content of the string page data.
 int getLineNumber()
          Return the line number where the current page element ends.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingInstructionElement

public ProcessingInstructionElement(String target,
                                    String data)
Constructs the element.

Parameters:
target - target
data - data
Method Detail

accept

public void accept(PageElementVisitor visitor)
Accepts a visitor that should visit the page data.

Specified by:
accept in interface PageElement
Parameters:
visitor - visitor.

getData

public String getData()
Returns the content of the string page data.

Returns:
data.

getColumnNumber

public int getColumnNumber()
Description copied from interface: PageElement
Return the column number where the current page element ends.

Specified by:
getColumnNumber in interface PageElement
Returns:
the column number. -1 if unavailable.
See Also:
PageElement.getColumnNumber()

getLineNumber

public int getLineNumber()
Description copied from interface: PageElement
Return the line number where the current page element ends.

Specified by:
getLineNumber in interface PageElement
Returns:
the line number. -1 if unavailable.
See Also:
PageElement.getLineNumber()


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