|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.ecs.Element
This class implements the ElementFactory.
Field Summary | |
private int |
case_type
Default value to set case type |
private java.lang.String |
codeset
What codeset are we going to use the default is 8859_1 |
private java.util.Hashtable |
element
Where to get the element definition from |
private boolean |
end_element
Does this element need a closing tag? |
private Filter |
filter
Filter to use to escape input |
private boolean |
filter_state
Should we filter the value of <>VALUE</> |
private int |
position
position of tag relative to start and end. |
private static java.lang.String |
VERSION
Version number for codebase |
Constructor Summary | |
Element()
Base class for defining all elements. |
Method Summary | |
protected java.lang.String |
alterCase(java.lang.String value)
Alter the case of this element so that it is rendered according to whatever the value of case_type is. |
int |
getCase()
Find out what case the element is supposed to be rendered in. |
java.lang.String |
getCodeSet()
Find out what the current codeset is. |
protected java.util.Hashtable |
getElementHashEntry()
Get the Hashtable representation of an element. |
java.lang.String |
getElementType()
Find out what type of element this is. |
Filter |
getFilter()
Get the filter that is currently in use. |
boolean |
getFilterState()
get the filter state of the element. |
boolean |
getNeedClosingTag()
Determine if this element needs to be closed. |
int |
getTagPosition()
|
java.lang.String |
getVersion()
What version of htmlGen is this? |
abstract void |
output(java.io.OutputStream out)
|
abstract void |
output(java.io.PrintWriter out)
|
void |
setCase(int case_type)
Determine what case the html element should be rendered. |
void |
setCodeSet(java.lang.String codeset)
Determine what codeset should be used. |
void |
setElementType(java.lang.String element_type)
Determine what type of element this is A,BR,EM,ACRONYM |
void |
setFilter(Filter filter)
Override the default filter with a user supplied filter. |
void |
setFilterState(boolean filter_state)
set the filter state of the element. |
void |
setNeedClosingTag(boolean close)
Does this element need a closing tag. |
void |
setTagPosition(int position)
|
java.lang.String |
toString()
Override toString() method to print something meaningful |
java.lang.String |
toString(java.lang.String codeset)
Override toString(encode) method to print something meaningful |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Filter filter
private int position
private boolean filter_state
private static final java.lang.String VERSION
private int case_type
private java.util.Hashtable element
private boolean end_element
private java.lang.String codeset
Constructor Detail |
public Element()
Method Detail |
protected java.util.Hashtable getElementHashEntry()
public void setFilterState(boolean filter_state)
filter_state
- (true|false) do we want to use a filter? default true;public boolean getFilterState()
public Filter getFilter()
public void setFilter(Filter filter)
public java.lang.String getVersion()
public void setCase(int case_type)
public int getCase()
public void setElementType(java.lang.String element_type)
public java.lang.String getElementType()
public void setCodeSet(java.lang.String codeset)
public java.lang.String getCodeSet()
public void setNeedClosingTag(boolean close)
public boolean getNeedClosingTag()
public void setTagPosition(int position)
public int getTagPosition()
protected java.lang.String alterCase(java.lang.String value)
public final java.lang.String toString()
public final java.lang.String toString(java.lang.String codeset)
public abstract void output(java.io.OutputStream out)
public abstract void output(java.io.PrintWriter out)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |