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.4 1999/06/08 21:29:10 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
 char getEndModifier()
          Get the modifier for the end of the tag if one exists.
 char getEndTagChar()
          Get the end tag character.
 boolean getNeedClosingTag()
          Get whether or not this Element needs a closing tag
 char getStartModifier()
          Get a modifier for the start of the tag if one exists.
 char getStartTagChar()
          Get the start tag character.
 int getTagPosition()
          Get tag position.
 java.lang.String getVersion()
          Get the version number of this codebase
 void output(java.io.OutputStream out)
          Provide a way to output the element to a stream.
 void output(java.io.PrintWriter out)
          Provide a way to output the element to a PrintWriter.
 void setCase(int type)
          Set case type
 void setElementType(java.lang.String element_type)
          Set the HtmlElement type
 Element setEndModifier(char start_modifier)
          Set a modifer for the end of the tag.
 void setEndTagChar(char end_tag)
          Set the end tag character.
 void setNeedClosingTag(boolean close_tag)
          Set wether or not this Element needs a closing tag
 Element setStartModifier(char start_modifier)
           
 void setStartTagChar(char start_tag)
          Set the start tag character.
 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.

setStartTagChar

public void setStartTagChar(char start_tag)
Set the start tag character.

getStartTagChar

public char getStartTagChar()
Get the start tag character.

setEndTagChar

public void setEndTagChar(char end_tag)
Set the end tag character.

getEndTagChar

public char getEndTagChar()
Get the end tag character.

setStartModifier

public Element setStartModifier(char start_modifier)

getStartModifier

public char getStartModifier()
Get a modifier for the start of the tag if one exists.

setEndModifier

public Element setEndModifier(char start_modifier)
Set a modifer for the end of the tag.

getEndModifier

public char getEndModifier()
Get the modifier for the end of the tag if one exists.

output

public void output(java.io.OutputStream out)
Provide a way to output the element to a stream.

output

public void output(java.io.PrintWriter out)
Provide a way to output the element to a PrintWriter.