|
||||||||
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 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 =""? |
Fields inherited from class org.apache.ecs.Element |
__text,
case_type,
codeset,
element,
element_type,
end_element,
end_modifier,
end_modifier_defined,
end_tag,
filter,
filter_state,
position,
resource,
start_modifier,
start_modifier_defined,
start_tag,
VERSION |
Constructor Summary | |
protected |
ElementAttributes()
Basic constructor. |
Method Summary | |
void |
addAttribute(java.lang.String attribute_name,
java.lang.Object attribute_value)
Add an attribute to the element. |
protected java.lang.String |
createStartTag()
|
Filter |
getAttributeFilter()
Get the filter for all element attributes. |
protected boolean |
getAttributeFilterState()
Find out if we want to filter the elements attributes or not. |
boolean |
hasAttribute(java.lang.String attribute)
does the element have a particular attribute? |
void |
removeAttribute(java.lang.String attribute_name)
remove an attribute from the element |
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 |
setID(java.lang.String id)
Set the element id for Cascading Style Sheets. |
Element |
setLang(java.lang.String lang)
Sets the LANG="" attribute |
Element |
setStyle(java.lang.String style)
Sets the STYLE="" attribute |
Element |
setTitle(java.lang.String title)
Sets the TITLE="" attribute |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Field Detail |
private Filter attribute_filter
private boolean filter_attribute_state
public static final java.lang.String NO_ATTRIBUTE_VALUE
Constructor Detail |
protected 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 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)
protected java.lang.String createStartTag()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |