|
||||||||
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 java.lang.String |
__text
|
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 java.lang.String |
element_type
Location to store element_type at. |
private boolean |
end_element
Does this element need a closing tag? |
private char |
end_modifier
What the end modifier should be |
protected boolean |
end_modifier_defined
What the modifier should be...optimization variable |
private char |
end_tag
|
private static 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. |
protected static java.util.ResourceBundle |
resource
|
private char |
start_modifier
What the start modifier should be |
protected boolean |
start_modifier_defined
What the modifier should be...optimization variable |
private char |
start_tag
|
private static java.lang.String |
VERSION
Version number for codebase |
Constructor Summary | |
protected |
Element()
Base class for defining all elements. |
Method Summary | |
(package private) void |
|
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. |
protected java.lang.String |
createEndTag()
|
protected java.lang.String |
createStartTag()
|
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. |
char |
getEndModifier()
What is the element modifier for this tag. |
protected boolean |
getEndModifierDefined()
Modifier optimization |
char |
getEndTagChar()
Get the end tag character. |
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. |
char |
getStartModifier()
What is the element modifier for this tag. |
protected boolean |
getStartModifierDefined()
Modifier optimization |
char |
getStartTagChar()
Get the start tag character. |
int |
getTagPosition()
Get the position the tag is to be rendered at. |
java.lang.String |
getTagText()
|
java.lang.String |
getVersion()
What version of htmlGen is this? |
void |
output(java.io.OutputStream out)
Add the element to the designated OutputStream. |
void |
output(java.io.PrintWriter out)
Add element to the designated PrintWriter. |
Element |
removeEndModifier()
Remove the element modifier for this tag. |
Element |
removeStartModifier()
Remove the element modifier for this tag. |
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 |
Element |
setEndModifier(char modifier)
Set the element modifier the default is no modifier. |
private void |
setEndModifierDefined(boolean val)
Modifier optimization |
void |
setEndTagChar(char end_tag)
Set the end tag character. |
void |
setFilter(Filter filter)
Override the default filter with a user supplied filter. |
Element |
setFilterState(boolean filter_state)
set the filter state of the element. |
Element |
setModifier(char modifier)
Set the element modifier the default is no modifier. |
Element |
setModifier(char start_modifier,
char end_modifier)
Set the element modifier the default is no modifier. |
void |
setNeedClosingTag(boolean close)
Does this element need a closing tag. |
Element |
setStartModifier(char modifier)
Set the element modifier the default is no modifier. |
private void |
setStartModifierDefined(boolean val)
Modifier optimization |
void |
setStartTagChar(char start_tag)
Set the start tag character. |
void |
setTagPosition(int position)
Set the position of the tag to be rendered at in relation to start_element_char |
void |
setTagText(java.lang.String text)
|
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 |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Field Detail |
protected static java.util.ResourceBundle resource
private static 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
private char start_modifier
private char end_modifier
protected boolean start_modifier_defined
protected boolean end_modifier_defined
private char start_tag
private char end_tag
private java.lang.String __text
private java.lang.String element_type
Constructor Detail |
protected Element()
Method Detail |
void()
protected java.util.Hashtable getElementHashEntry()
public Element 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 Element setModifier(char modifier)
modifier
- the modifier for the element a ? would result public Element setStartModifier(char modifier)
modifier
- the modifier for the element a ? would result public Element setEndModifier(char modifier)
modifier
- the modifier for the element a ? would result public Element setModifier(char start_modifier, char end_modifier)
modifier
- the modifier for the element a ? would result public char getStartModifier()
public char getEndModifier()
public Element removeStartModifier()
public Element removeEndModifier()
private void setStartModifierDefined(boolean val)
private void setEndModifierDefined(boolean val)
protected boolean getStartModifierDefined()
protected boolean getEndModifierDefined()
public void setStartTagChar(char start_tag)
public char getStartTagChar()
public void setEndTagChar(char end_tag)
public char getEndTagChar()
public java.lang.String getTagText()
public void setTagText(java.lang.String text)
protected java.lang.String createStartTag()
protected java.lang.String createEndTag()
public final java.lang.String toString()
public final java.lang.String toString(java.lang.String codeset)
public void output(java.io.OutputStream out)
public void output(java.io.PrintWriter out)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |