|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.ajaxtags.helpers.AbstractItem
public abstract class AbstractItem
A generic item class, basically representing a name-value pair. s
| Constructor Summary | |
|---|---|
protected |
AbstractItem()
Constructor for Item. |
protected |
AbstractItem(String name,
Object value,
boolean asCData)
Constructor for Item. |
| Method Summary | |
|---|---|
void |
clearAttribute()
Clear the attributes. |
Set<Object> |
getAttributeKeySet()
List all attribute-names. |
String |
getAttributeValue(Object name)
Read the attribute value. |
String |
getName()
|
Object |
getValue()
The type depends on the child-class. |
boolean |
isAsCData()
|
void |
removeAttribute(String name)
Removes an attribute. |
void |
setAllAttributes(Map<?,String> attributes)
Set all attributes. |
void |
setAllAttributes(Map<?,String> attributes,
boolean evenIfNull)
Set all attributes. |
void |
setAsCData(boolean asCData)
|
void |
setAttributes(Object name,
String value)
Set an attribute to extend the item. |
void |
setAttributes(Object name,
String value,
boolean evenIfNull)
Set an attribute to extend the item. |
void |
setName(String name)
Set the Name. |
void |
setValue(Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractItem(String name,
Object value,
boolean asCData)
name - the name for the itemvalue - the valueasCData - response as CDATAprotected AbstractItem()
| Method Detail |
|---|
public final void setAllAttributes(Map<?,String> attributes,
boolean evenIfNull)
attributes - the attributes to setevenIfNull - set the attribute even if value is nullpublic final void setAllAttributes(Map<?,String> attributes)
attributes - the attributes to setpublic Set<Object> getAttributeKeySet()
public final void removeAttribute(String name)
name - the name of attributepublic final void clearAttribute()
public final void setAttributes(Object name,
String value)
#setAttributes(String, String, boolean) with false as third parameter.
name - the name for the attributevalue - the value for the attribute#setAttributes(String, String, boolean)
public final void setAttributes(Object name,
String value,
boolean evenIfNull)
name - the name for the attributevalue - the value for the attributeevenIfNull - set attribute even if it is nullpublic String getAttributeValue(Object name)
name - the attribute name
namepublic String getName()
public final void setName(String name)
name - The name to set.public Object getValue()
public final void setValue(Object value)
value - The value to set.public boolean isAsCData()
public final void setAsCData(boolean asCData)
asCData - The asCData to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||