|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Element
This class describes an ElementFactory.
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 |
---|
static final int UPPERCASE
static final int LOWERCASE
static final int MIXEDCASE
static final int CENTER
static final int LEFT
static final int RIGHT
Method Detail |
---|
void setCase(int type)
int getCase()
java.lang.String getVersion()
void setElementType(java.lang.String element_type)
java.lang.String getElementType()
void setNeedClosingTag(boolean close_tag)
boolean getNeedClosingTag()
boolean getNeedLineBreak()
void setTagPosition(int position)
int getTagPosition()
void setStartTagChar(char start_tag)
char getStartTagChar()
void setEndTagChar(char end_tag)
char getEndTagChar()
Element setBeginStartModifier(char start_modifier)
char getBeginStartModifier()
Element setBeginEndModifier(char start_modifier)
char getBeginEndModifier()
Element setEndStartModifier(char start_modifier)
char getEndStartModifier()
Element setEndEndModifier(char start_modifier)
char getEndEndModifier()
Element setFilterState(boolean state)
boolean getFilterState()
Element setPrettyPrint(boolean pretty_print)
boolean getPrettyPrint()
void setTabLevel(int tabLevel)
int getTabLevel()
void output(java.io.OutputStream out)
void output(java.io.PrintWriter out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |