org.apache.ecs
Interface Element

All Superinterfaces:
ElementRegistry
All Known Implementing Classes:
a, A, A, abbr, Abbr, Access, acronym, Acronym, address, Address, Alignment, Anchor, applet, Applet, area, Area, Assign, Audio, Author, b, B, B, BackGroundColor, base, Base, basefont, BaseFont, bdo, Bdo, big, Big, Big, blink, Blink, Block, blockquote, BlockQuote, body, Body, Bold, BorderBottom, BorderLeft, BorderRight, BorderStyle, BorderTop, br, BR, BR, Break, button, Button, caption, Caption, Card, Catch, Category, Cell, CellDef, center, Center, Centered, Choice, cite, Cite, Clear, ClearElement, code, Code, col, Col, colgroup, ColGroup, ColorGroup, ColorTbl, comment, Comment, Comment, ConcreteElement, dd, DD, del, Del, dfn, Dfn, Disconnect, div, Div, Div, dl, DL, Do, Doccomm, Doctype, Doctype.Html401Frameset, Doctype.Html401Strict, Doctype.Html401Transitional, Doctype.Html40Frameset, Doctype.Html40Strict, Doctype.Html40Transitional, Doctype.XHtml10Frameset, Doctype.XHtml10Strict, Doctype.XHtml10Transitional, dt, DT, Dtmf, ElementAttributes, ElementContainer, Else, Elseif, em, Em, Em, Emp, Enumerate, Error, Exit, Field, Field, FieldResult, fieldset, Fieldset, FieldSet, FieldType, Filled, font, Font, FontSize, Footer, ForeGroundColor, form, Form, Form, frame, Frame, frameset, FrameSet, GenericElement, Go, GoHref, Goto, Grammar, h1, H1, h2, H2, h3, H3, h4, H4, h5, H5, h6, H6, head, Head, Head, Header, Help, hr, HR, html, Html, i, I, I, If, iframe, IFrame, img, Img, IMG, Indent, Info, Initial, input, Input, Input, ins, Ins, jsp_element, jsp_expression, jsp_forward, jsp_getProperty, jsp_include, jsp_page, jsp_scriptlet, jsp_setProperty, jsp_useBean, Justified, kbd, Kbd, Keywords, label, Label, Left, legend, Legend, li, LI, link, Link, Link, Manager, map, Map, Menu, meta, Meta, Meta, Meta, MultiPartElement, nobr, NOBR, noframes, NoFrames, Noinput, Nomatch, Noop, noscript, NoScript, object, Object, ObjectElement, ol, OL, Onevent, Operator, optgroup, Optgroup, OptGroup, option, Option, Option, Option, p, P, P, PageBreak, PageNumber, Paragraph, param, Param, Param, PI, Postfield, pre, PRE, Prev, PrevWithVar, Prompt, Property, Pros, PSingle, q, Q, Record, Refresh, Reprompt, Return, Right, Row, RTF, RTFElement, s, S, samp, Samp, Sayas, script, Script, Script, select, Select, Select, SetVar, SinglePartElement, small, Small, Small, span, Span, strike, Strike, StringElement, strong, Strong, Strong, style, Style, sub, Sub, Subdialog, Subject, Submit, sup, Sup, table, Table, Table, Table, TableDef, TableHeader, tbody, TBody, td, Td, TD, Template, textarea, TextArea, tfoot, TFoot, th, TH, thead, THead, Throw, Timer, title, Title, Title, tr, Tr, TR, Transfer, tsx_dbconnect, tsx_dbmodify, tsx_dbquery, tsx_getProperty, tsx_repeat, tsx_setProperty, tt, TT, u, U, U, ul, UL, Value, var, Var, Var, Version, Vxml, VXMLElement, WML, XML

public interface Element
extends ElementRegistry

This class describes an ElementFactory.

Version:
$Id: Element.java,v 1.4 2003/04/27 09:43:24 rdonkin 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
 char getBeginEndModifier()
          Get the modifier for the end of the tag if one exists.
 char getBeginStartModifier()
          Get a modifier for the start of the tag if one exists.
 int getCase()
          Used to determine case setting
 java.lang.String getElementType()
          Get the HtmlElement type
 char getEndEndModifier()
          Get the modifier for the end of the tag if one exists.
 char getEndStartModifier()
          Get a modifier for the start of the tag if one exists.
 char getEndTagChar()
          Get the end tag character.
 boolean getFilterState()
          Get the filter state of the element.
 boolean getNeedClosingTag()
          Get whether or not this Element needs a closing tag
 boolean getNeedLineBreak()
          Determine if this element needs a line break, if pretty printing.
 boolean getPrettyPrint()
          Get the prettyPrint state of the element.
 char getStartTagChar()
          Get the start tag character.
 int getTabLevel()
          Get the tab level for pretty printing.
 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.
 Element setBeginEndModifier(char start_modifier)
          Set a modifer for the end of the tag.
 Element setBeginStartModifier(char start_modifier)
           
 void setCase(int type)
          Set case type
 void setElementType(java.lang.String element_type)
          Set the HtmlElement type
 Element setEndEndModifier(char start_modifier)
          Set a modifer for the end of the tag.
 Element setEndStartModifier(char start_modifier)
           
 void setEndTagChar(char end_tag)
          Set the end tag character.
 Element setFilterState(boolean state)
          Set the filter state of the element.
 void setNeedClosingTag(boolean close_tag)
          Set wether or not this Element needs a closing tag
 Element setPrettyPrint(boolean pretty_print)
          Set the prettyPrint state of the element.
 void setStartTagChar(char start_tag)
          Set the start tag character.
 void setTabLevel(int tabLevel)
          Set the tab level for pretty printing
 void setTagPosition(int position)
          Set tag position.
 
Methods inherited from interface org.apache.ecs.ElementRegistry
addElementToRegistry, addElementToRegistry, registryHasElement, registryHasElement, removeElementFromRegistry, removeElementFromRegistry
 

Field Detail

UPPERCASE

static final int UPPERCASE
Element to be rendered in all CAPS

See Also:
Constant Field Values

LOWERCASE

static final int LOWERCASE
Element to be rendered in all lowercase

See Also:
Constant Field Values

MIXEDCASE

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

See Also:
Constant Field Values

CENTER

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

See Also:
Constant Field Values

LEFT

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

See Also:
Constant Field Values

RIGHT

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

See Also:
Constant Field Values
Method Detail

setCase

void setCase(int type)
Set case type


getCase

int getCase()
Used to determine case setting


getVersion

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


setElementType

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


getElementType

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


setNeedClosingTag

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


getNeedClosingTag

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


getNeedLineBreak

boolean getNeedLineBreak()
Determine if this element needs a line break, if pretty printing.


setTagPosition

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


getTagPosition

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


setStartTagChar

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


getStartTagChar

char getStartTagChar()
Get the start tag character.


setEndTagChar

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


getEndTagChar

char getEndTagChar()
Get the end tag character.


setBeginStartModifier

Element setBeginStartModifier(char start_modifier)

getBeginStartModifier

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


setBeginEndModifier

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


getBeginEndModifier

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


setEndStartModifier

Element setEndStartModifier(char start_modifier)

getEndStartModifier

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


setEndEndModifier

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


getEndEndModifier

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


setFilterState

Element setFilterState(boolean state)
Set the filter state of the element.


getFilterState

boolean getFilterState()
Get the filter state of the element.


setPrettyPrint

Element setPrettyPrint(boolean pretty_print)
Set the prettyPrint state of the element.


getPrettyPrint

boolean getPrettyPrint()
Get the prettyPrint state of the element.


setTabLevel

void setTabLevel(int tabLevel)
Set the tab level for pretty printing


getTabLevel

int getTabLevel()
Get the tab level for pretty printing.


output

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


output

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



Copyright © 1999-2003 Apache Software Foundation. All Rights Reserved.