|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.ecs.Element | +--org.apache.ecs.ElementAttributes
This class provides a common set of attributes set* methods for all classes. It is abstract to prevent direct instantiation.
Field Summary | |
private Filter |
attribute_filter
Filter to use to escape attribute input |
private java.lang.String |
end_modifier
What the end modifier should be |
private boolean |
end_modifier_defined
What the modifier should be...optimization variable |
private boolean |
filter_attribute_state
Should we filter the value of the element attributes |
static java.lang.String |
NO_ATTRIBUTE_VALUE
Does this element attribute value need a =""? |
private java.lang.String |
start_modifier
What the start modifier should be |
private boolean |
start_modifier_defined
What the modifier should be...optimization variable |
Fields inherited from class org.apache.ecs.Element |
case_type,
codeset,
element,
end_element,
filter,
filter_state,
position,
VERSION |
Constructor Summary | |
ElementAttributes()
Basic constructor. |
Method Summary | |
void |
addAttribute(java.lang.String attribute_name,
java.lang.Object attribute_value)
Add an attribute to the element. |
Filter |
getAttributeFilter()
Get the filter for all element attributes. |
protected boolean |
getAttributeFilterState()
Find out if we want to filter the elements attributes or not. |
java.lang.String |
getEndModifier()
What is the element modifier for this tag. |
private boolean |
getEndModifierDefined()
Modifier optimization |
java.lang.String |
getStartModifier()
What is the element modifier for this tag. |
private boolean |
getStartModifierDefined()
Modifier optimization |
boolean |
hasAttribute(java.lang.String attribute)
|
void |
output(java.io.OutputStream out)
Add the element to the designated OutputStream. |
void |
output(java.io.PrintWriter pw)
Add element to the designated PrintWriter. |
void |
removeAttribute(java.lang.String attribute_name)
|
Element |
removeEndModifier()
Remove the element modifier for this tag. |
Element |
removeStartModifier()
Remove the element modifier for this tag. |
Element |
setAttributeFilter(Filter attribute_filter)
Set up a new filter for all element attributes. |
Element |
setAttributeFilterState(boolean filter_attribute_state)
Tell the element if we want to filter its attriubtes. |
Element |
setClass(java.lang.String element_class)
Set the element class for Cascading Style Sheets. |
Element |
setDir(java.lang.String dir)
Sets the DIR="" attribute |
Element |
setEndModifier(java.lang.String modifier)
Set the element modifier the default is no modifier. |
private void |
setEndModifierDefined(boolean val)
Modifier optimization |
Element |
setID(java.lang.String id)
Set the element id for Cascading Style Sheets. |
Element |
setLang(java.lang.String lang)
Sets the LANG="" attribute |
Element |
setModifier(java.lang.String modifier)
Set the element modifier the default is no modifier. |
Element |
setModifier(java.lang.String start_modifier,
java.lang.String end_modifier)
Set the element modifier the default is no modifier. |
Element |
setStartModifier(java.lang.String modifier)
Set the element modifier the default is no modifier. |
private void |
setStartModifierDefined(boolean val)
Modifier optimization |
Element |
setStyle(java.lang.String style)
Sets the STYLE="" attribute |
Element |
setTitle(java.lang.String title)
Sets the TITLE="" attribute |
Methods inherited from class org.apache.ecs.Element |
alterCase,
getCase,
getCodeSet,
getElementHashEntry,
getElementType,
getFilter,
getFilterState,
getNeedClosingTag,
getTagPosition,
getVersion,
setCase,
setCodeSet,
setElementType,
setFilter,
setFilterState,
setNeedClosingTag,
setTagPosition,
toString,
toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Filter attribute_filter
private boolean filter_attribute_state
public static final java.lang.String NO_ATTRIBUTE_VALUE
private java.lang.String start_modifier
private java.lang.String end_modifier
private boolean start_modifier_defined
private boolean end_modifier_defined
Constructor Detail |
public ElementAttributes()
Method Detail |
public Element setID(java.lang.String id)
public Element setClass(java.lang.String element_class)
public Element setLang(java.lang.String lang)
lang
- the LANG="" attributepublic Element setStyle(java.lang.String style)
style
- the STYLE="" attributepublic Element setDir(java.lang.String dir)
dir
- the DIR="" attributepublic Element setTitle(java.lang.String title)
title
- the TITLE="" attributeprotected boolean getAttributeFilterState()
public Element setAttributeFilterState(boolean filter_attribute_state)
filter_attribute_state
- do we want to filter the attributes of this element?public Element setAttributeFilter(Filter attribute_filter)
Filter
- the filter we want to use for element attributes. By public Filter getAttributeFilter()
Filter
- the filter we want to use for element attributes. By public Element setModifier(java.lang.String modifier)
modifier
- the modifier for the element a ? would result public Element setStartModifier(java.lang.String modifier)
modifier
- the modifier for the element a ? would result public Element setEndModifier(java.lang.String modifier)
modifier
- the modifier for the element a ? would result public Element setModifier(java.lang.String start_modifier, java.lang.String end_modifier)
modifier
- the modifier for the element a ? would result public java.lang.String getStartModifier()
public java.lang.String getEndModifier()
public Element removeStartModifier()
public Element removeEndModifier()
private void setStartModifierDefined(boolean val)
private void setEndModifierDefined(boolean val)
private boolean getStartModifierDefined()
private boolean getEndModifierDefined()
public void addAttribute(java.lang.String attribute_name, java.lang.Object attribute_value)
public void removeAttribute(java.lang.String attribute_name)
public boolean hasAttribute(java.lang.String attribute)
public void output(java.io.OutputStream out)
public void output(java.io.PrintWriter pw)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |