public abstract class AbstractAction extends java.lang.Object implements Action
Constructor and Description |
---|
AbstractAction() |
Modifier and Type | Method and Description |
---|---|
protected static void |
append(java.lang.StringBuffer sb,
java.lang.String attrName,
boolean avail)
Appends an attribute to the string buffer,
if
avail is true. |
protected static void |
append(java.lang.StringBuffer sb,
java.lang.String attrName,
int val)
Appends an attribute to the string buffer.
|
protected static void |
append(java.lang.StringBuffer sb,
java.lang.String attrName,
java.lang.String attrValue)
Appends an attribute to the string buffer,
if
attrValue is not null. |
boolean |
getIf()
Returns the if condition.
|
boolean |
getUnless()
Returns the unless condition.
|
boolean |
isEffective()
Returns whether this tag is effective.
|
void |
setIf(boolean ifcond)
Sets the if condition.
|
void |
setUnless(boolean unless)
Sets the unless condition.
|
protected static int |
toScope(java.lang.String scope)
Returns one of
ActionContext.PAGE_SCOPE , ActionContext.REQUEST_SCOPE ,
ActionContext.SESSION_SCOPE and ActionContext.APPLICATION_SCOPE
of the specified scope name. |
public boolean getIf()
getUnless()
) is true, this tag is
ignored, too.
Tags deriving from this class shall invoke isEffective()
to
know the result.
Default: true.
public void setIf(boolean ifcond)
public boolean getUnless()
getIf()
) is true, this tag is ignored, too.
Tags deriving from this class shall invoke isEffective()
to
know the result.
Default: false.
public void setUnless(boolean unless)
public boolean isEffective()
protected static final int toScope(java.lang.String scope)
ActionContext.PAGE_SCOPE
, ActionContext.REQUEST_SCOPE
,
ActionContext.SESSION_SCOPE
and ActionContext.APPLICATION_SCOPE
of the specified scope name.scope
- one of "page", "request", "session" and "application".protected static final void append(java.lang.StringBuffer sb, java.lang.String attrName, java.lang.String attrValue)
attrValue
is not null.protected static void append(java.lang.StringBuffer sb, java.lang.String attrName, boolean avail)
avail
is true.protected static final void append(java.lang.StringBuffer sb, java.lang.String attrName, int val)
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.