org.apache.ecs
Interface ElementFactory

All Known Implementing Classes:
Element

public abstract interface ElementFactory

This class describes an ElementFactory.

Version:
$Id: ElementFactory.java,v 1.3 1999/04/22 05:56:26 stephan Exp $
Author:
Stephan Nagy, Jon S. Stevens

Field Summary
static int CENTER
          Element tag to be rendered to the center of start_tag end_tag <_tag>
This is the default.
static int LEFT
          Element tag to be rendered to the left of start_tag end_tag _tag<>
static int LOWERCASE
          Element to be rendered in all lowercase
static int MIXEDCASE
          Element to be rendered as specified by subclass
static int RIGHT
          Element tag to be rendered to the right of start_tag end_tag <>_tag
static int UPPERCASE
          Element to be rendered in all CAPS
 
Method Summary
 int getCase()
          Used to determine case setting
 java.lang.String getElementType()
          Get the HtmlElement type
 boolean getNeedClosingTag()
          Get whether or not this Element needs a closing tag
 int getTagPosition()
          Get tag position.
 java.lang.String getVersion()
          Get the version number of this codebase
 void setCase(int type)
          Set case type
 void setElementType(java.lang.String element_type)
          Set the HtmlElement type
 void setNeedClosingTag(boolean close_tag)
          Set wether or not this Element needs a closing tag
 void setTagPosition(int position)
          Set tag position.
 

Field Detail

UPPERCASE

public static final int UPPERCASE
Element to be rendered in all CAPS

LOWERCASE

public static final int LOWERCASE
Element to be rendered in all lowercase

MIXEDCASE

public static final int MIXEDCASE
Element to be rendered as specified by subclass

CENTER

public static final int CENTER
Element tag to be rendered to the center of start_tag end_tag <_tag>
This is the default.

LEFT

public static final int LEFT
Element tag to be rendered to the left of start_tag end_tag _tag<>

RIGHT

public static final int RIGHT
Element tag to be rendered to the right of start_tag end_tag <>_tag
Method Detail

setCase

public void setCase(int type)
Set case type

getCase

public int getCase()
Used to determine case setting

getVersion

public java.lang.String getVersion()
Get the version number of this codebase

setElementType

public void setElementType(java.lang.String element_type)
Set the HtmlElement type

getElementType

public java.lang.String getElementType()
Get the HtmlElement type

setNeedClosingTag

public void setNeedClosingTag(boolean close_tag)
Set wether or not this Element needs a closing tag

getNeedClosingTag

public boolean getNeedClosingTag()
Get whether or not this Element needs a closing tag

setTagPosition

public void setTagPosition(int position)
Set tag position. ElementFactory CENTER | LEFT | RIGHT

getTagPosition

public int getTagPosition()
Get tag position. How is the element supposed to be rendered.