net.trajano.twiff.renderer
Class StringElement

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

public class StringElement
extends Object
implements PageElement

A page data that contains a string.

Author:
Archimedes Trajano

Constructor Summary
StringElement(String content)
          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 getContent()
          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

StringElement

public StringElement(String content)
Constructs the element.

Parameters:
content - content
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.

getContent

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

Returns:
content.

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.