|
JavaTM 2 Platform Ent. Ed. v1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagAttributeInfo
Information on the attributes of a Tag, available at translation time. This class is instantiated from the Tag Library Descriptor file (TLD).
Only the information needed to generate code is included here. Other information like SCHEMA for validation belongs elsewhere.
Field Summary | |
static String |
ID
"id" is wired in to be ID. |
Constructor Summary | |
TagAttributeInfo(String name,
boolean required,
String type,
boolean reqTime)
Constructor for TagAttributeInfo. |
|
TagAttributeInfo(String name,
boolean required,
String type,
boolean reqTime,
boolean fragment)
JSP 2.0 Constructor for TagAttributeInfo. |
Method Summary | |
boolean |
canBeRequestTime()
Whether this attribute can hold a request-time value. |
static TagAttributeInfo |
getIdAttribute(TagAttributeInfo[] a)
Convenience static method that goes through an array of TagAttributeInfo objects and looks for "id". |
String |
getName()
The name of this attribute. |
String |
getTypeName()
The type (as a String) of this attribute. |
boolean |
isFragment()
Whether this attribute is of type JspFragment. |
boolean |
isRequired()
Whether this attribute is required. |
String |
toString()
Returns a String representation of this TagAttributeInfo, suitable for debugging purposes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String ID
Constructor Detail |
public TagAttributeInfo(String name, boolean required, String type, boolean reqTime)
name
- The name of the attribute.required
- If this attribute is required in tag instances.type
- The name of the type of the attribute.reqTime
- Whether this attribute holds a request-time Attribute.public TagAttributeInfo(String name, boolean required, String type, boolean reqTime, boolean fragment)
name
- The name of the attribute.required
- If this attribute is required in tag instances.type
- The name of the type of the attribute.reqTime
- Whether this attribute holds a request-time Attribute.fragment
- Whether this attribute is of type JspFragmentMethod Detail |
public String getName()
public String getTypeName()
public boolean canBeRequestTime()
public boolean isRequired()
public static TagAttributeInfo getIdAttribute(TagAttributeInfo[] a)
a
- An array of TagAttributeInfo
public boolean isFragment()
public String toString()
|
JavaTM 2 Platform Ent. Ed. v1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.