|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
net.windward.tags.BaseTag
This is the base class for all tag's that handle tag elements in the document. It exists mainly because there should be a single base for all tags - but it doesn't do much. This class also contains the factory that will create a tag based on the template string.
| Field Summary | |
static int |
CHART
This is a node of the type <wr:chart>. |
static int |
COLUMN
This is a node of the type <wr:column>. |
static java.lang.String |
DISPLAY_ALWAYS
|
static java.lang.String |
DISPLAY_NOT_EMPTY
|
static java.lang.String |
DISPLAY_NOT_NULL
|
static int |
ELSE
This is a node of the type </wr:else>. |
static int |
END_FOREACH
This is a node of the type </wr:forEach>. |
static int |
END_IF
This is a node of the type </wr:if>. |
static int |
END_LINK
This is a node of the type </wr:link>. |
static int |
END_MATRIX
This is a virtual tag for the end of a matrix table. |
static int |
ESCAPE
This is a node of the type <wr:escape>. |
static int |
FOREACH
This is a node of the type <wr:forEach>. |
static int |
FUNCTION
This is a node of the type <wr:function>. |
static int |
HTML
This is a node of the type <wr:html>. |
static int |
IF
This is a node of the type <wr:if>. |
static int |
IMPORT
This is a node of the type <wr:import>. |
static int |
LINK
This is a node of the type <wr:link>. |
static int |
MATRIX
This is a node of the type <wr:matrix>. |
static int |
OUT
This is a node of the type <wr:out>. |
static java.lang.String |
PROP_COMMENT
|
static java.lang.String |
PROP_DATASOURCE
|
static java.lang.String |
PROP_DEFAULT
|
static java.lang.String |
PROP_DISPLAY
|
static java.lang.String |
PROP_ENABLED
|
static java.lang.String |
PROP_INPUT
|
static java.lang.String |
PROP_PATTERN
|
static java.lang.String |
PROP_TITLE
|
static java.lang.String |
PROP_TYPE
|
static java.lang.String |
PROP_VAR
|
static java.lang.String |
PROP_WRAP
|
static int |
QUERY
This is a node of the type <wr:query>. |
static int |
ROW
This is a node of the type <wr:row>. |
static int |
SET
This is a node of the type <wr:set>. |
static int |
TAG_DISPLAY_DEFAULT
|
static int |
TAG_DISPLAY_SELECT
|
static int |
TAG_DISPLAY_TAG
|
static java.lang.String |
TYPE_BITMAP
|
static java.lang.String |
TYPE_BOTH
|
static java.lang.String |
TYPE_CURRENCY
|
static java.lang.String |
TYPE_DATE
|
static java.lang.String |
TYPE_NUMBER
|
static java.lang.String |
TYPE_PERCENT
|
static java.lang.String |
TYPE_TIME
|
static java.lang.String |
WRAP_BEHIND
|
static java.lang.String |
WRAP_FRONT
|
static java.lang.String |
WRAP_INLINE
|
static java.lang.String |
WRAP_SQUARE
|
| Method Summary | |
boolean |
containsAttribute(java.lang.String key)
Returns true if this attribute is held by the tag. |
static BaseTag |
factory(int typ,
java.util.Map map,
int nestLevel,
boolean ignoreErrors)
Generate a tag for the passed in command. |
static BaseTag |
factory(java.lang.String text,
int nestLevel,
boolean ignoreErrors)
Generate a tag for the passed in command. |
java.lang.String |
getAttribute(java.lang.String key)
Return the requested attribute. |
java.util.Map |
getAttributes()
Get the property map of this node. |
java.lang.String |
getBean()
Get the bean name of this node. |
java.lang.String |
getDatasource()
Get the datasource of this node. |
int |
getIntAttribute(java.lang.String key)
Return the requested attribute. |
int |
getLevel()
Returns the level of this If (a matching end will have the same level) |
int |
getMode()
The select mode. |
java.lang.String |
getNode()
Get the select for this tag. |
int |
getType()
This is inherited from Element. |
abstract int |
getXmlType()
Returns which type of xml element this is. |
void |
setLevel(int level)
Sets the level of this If (a matching end will have the same level) |
void |
setNode(java.lang.String name)
Get the select for this tag. |
abstract java.lang.String |
toDisplay(int type)
How this node is displayed on the page when in a field. |
java.lang.String |
toTagText(java.lang.String tag,
int tagType,
boolean selfContained)
Adds the datasource and bean attributes to a tag, and then the closing bracket. |
abstract java.lang.String |
toText()
Converts this node back in to it's string representation in the document |
| Field Detail |
public static final java.lang.String PROP_DATASOURCE
public static final java.lang.String PROP_DEFAULT
public static final java.lang.String PROP_DISPLAY
public static final java.lang.String PROP_TYPE
public static final java.lang.String PROP_VAR
public static final java.lang.String PROP_INPUT
public static final java.lang.String PROP_PATTERN
public static final java.lang.String PROP_WRAP
public static final java.lang.String PROP_ENABLED
public static final java.lang.String PROP_TITLE
public static final java.lang.String PROP_COMMENT
public static final java.lang.String DISPLAY_NOT_EMPTY
public static final java.lang.String DISPLAY_NOT_NULL
public static final java.lang.String DISPLAY_ALWAYS
public static final java.lang.String TYPE_NUMBER
public static final java.lang.String TYPE_CURRENCY
public static final java.lang.String TYPE_PERCENT
public static final java.lang.String TYPE_DATE
public static final java.lang.String TYPE_TIME
public static final java.lang.String TYPE_BOTH
public static final java.lang.String TYPE_BITMAP
public static final java.lang.String WRAP_BEHIND
public static final java.lang.String WRAP_FRONT
public static final java.lang.String WRAP_INLINE
public static final java.lang.String WRAP_SQUARE
public static final int TAG_DISPLAY_DEFAULT
public static final int TAG_DISPLAY_TAG
public static final int TAG_DISPLAY_SELECT
public static final int ELSE
public static final int END_FOREACH
public static final int END_IF
public static final int END_LINK
public static final int ESCAPE
public static final int FOREACH
public static final int HTML
public static final int IF
public static final int IMPORT
public static final int LINK
public static final int QUERY
public static final int OUT
public static final int FUNCTION
public static final int SET
public static final int CHART
public static final int MATRIX
public static final int ROW
public static final int COLUMN
public static final int END_MATRIX
| Method Detail |
public abstract int getXmlType()
public abstract java.lang.String toText()
throws TagException
public abstract java.lang.String toDisplay(int type)
type - One of the DISPLAY_* constantspublic java.lang.String getNode()
public void setNode(java.lang.String name)
name - The SQL/xpath statement used to select the requested data.public int getMode()
public java.lang.String getDatasource()
public java.lang.String getBean()
public boolean containsAttribute(java.lang.String key)
key - The key to search for.public java.lang.String getAttribute(java.lang.String key)
key - The attribute requested.public int getIntAttribute(java.lang.String key)
key - The attribute requested.public java.util.Map getAttributes()
public int getLevel()
public void setLevel(int level)
level - the level for this If/while, will be 1+.public int getType()
public java.lang.String toTagText(java.lang.String tag,
int tagType,
boolean selfContained)
throws TagException
tag - The tag string missing the closing bracket.tagType - The tag type.selfContained - true if a self contained tag.
public static BaseTag factory(java.lang.String text,
int nestLevel,
boolean ignoreErrors)
throws TagException
text - The template text. For example: <wr:out value="./name"/>nestLevel - The nesting level for link/while/ifignoreErrors - Build even if some attributes are wrong or missing.TagException - The tag could not be parsed or is missing required attributes.
public static BaseTag factory(int typ,
java.util.Map map,
int nestLevel,
boolean ignoreErrors)
throws TagException
typ - The BaseTag.**TYPE** typemap - - the tag properties including the select and datasource.nestLevel - The nesting level for link/while/ifignoreErrors - Create the tag even if some attributes are missing or wrong.TagException - The tag could not be parsed or is missing required attributes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||