|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wlw.netui.tags.rendering.AbstractTagState com.bea.wlw.netui.tags.rendering.AbstractAttributeState
public abstract class AbstractAttributeState
Field Summary | |
---|---|
static int |
ATTR_GENERAL
The integer type constant indentifying the General Attributes AbstractBaseTag
reserves 0-9 for indentification. |
static int |
ATTR_GENERAL_EXPRESSION
|
static String |
EMPTY_STRING
String constant for the empty string. |
Constructor Summary | |
---|---|
AbstractAttributeState()
|
Method Summary | |
---|---|
void |
clear()
|
String |
getAttribute(int type,
String attrName)
Return a named attribute value from the specified attribute map. |
HashMap |
getExpressionAttributeMap()
|
HashMap |
getGeneralAttributeMap()
|
void |
registerAttribute(int type,
String attrName,
String value)
|
void |
registerAttribute(int type,
String attrName,
String value,
boolean ignoreEmpty)
Register a name/value pair into a named attribute map. |
void |
removeAttribute(int type,
String attrName)
Remove a previously registered attribute value from map. |
Map |
selectMap(int type,
boolean createIfNull)
This method will return the map that represents the passed in type . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EMPTY_STRING
public static final int ATTR_GENERAL
AbstractBaseTag
reserves 0-9 for indentification.
public static final int ATTR_GENERAL_EXPRESSION
Constructor Detail |
---|
public AbstractAttributeState()
Method Detail |
---|
public HashMap getGeneralAttributeMap()
public HashMap getExpressionAttributeMap()
public Map selectMap(int type, boolean createIfNull)
type
. The boolean flag
createIfNull indicates that the map should be created or not if it's null. This
class defines two maps defined by @see #ATTR_GENERAL
and ATTR_GENERAL_EXPRESSION
type
- integer
type indentifying the map to be created.createIfNull
- boolean
flag indicating if the map should be created if it doesn't exist.
ATTR_GENERAL
public void clear()
clear
in class AbstractTagState
public void registerAttribute(int type, String attrName, String value, boolean ignoreEmpty)
ATTR_GENERAL named map. Subclasses may add additional maps
enabling attributes to be treated with different behavior.
- Parameters:
type
- an integer key identifying the map.attrName
- the name of the attributevalue
- the value of the attribute
public void registerAttribute(int type, String attrName, String value)
public void removeAttribute(int type, String attrName)
type
- an integer key indentifying the mapattrName
- the name of the attribute to remove from the specified mappublic String getAttribute(int type, String attrName)
type
- an integer key indentifying the mapattrName
- the name of the attribute we will get the value from.
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |