| |
|
| java.lang.Object javax.servlet.jsp.tagext.TagAttributeInfo
TagAttributeInfo | public class TagAttributeInfo (Code) | | 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 | |
final public static String | ID "id" is wired in to be ID. |
Constructor Summary | |
public | TagAttributeInfo(String name, boolean required, String type, boolean reqTime) Constructor for TagAttributeInfo. | public | TagAttributeInfo(String name, boolean required, String type, boolean reqTime, boolean fragment) JSP 2.0 Constructor for TagAttributeInfo. |
Method Summary | |
public boolean | canBeRequestTime() Whether this attribute can hold a request-time value. | public static TagAttributeInfo | getIdAttribute(TagAttributeInfo a) Convenience static method that goes through an array of TagAttributeInfo
objects and looks for "id". | public String | getName() The name of this attribute. | public String | getTypeName() The type (as a String) of this attribute. | public boolean | isFragment() Whether this attribute is of type JspFragment. | public boolean | isRequired() Whether this attribute is required. | public String | toString() Returns a String representation of this TagAttributeInfo, suitable
for debugging purposes. |
ID | final public static String ID(Code) | | "id" is wired in to be ID. There is no real benefit in having it be something else
IDREFs are not handled any differently.
|
TagAttributeInfo | public TagAttributeInfo(String name, boolean required, String type, boolean reqTime)(Code) | | Constructor for TagAttributeInfo.
This class is to be instantiated only from the
TagLibrary code under request from some JSP code that is parsing a
TLD (Tag Library Descriptor).
Parameters: name - The name of the attribute. Parameters: required - If this attribute is required in tag instances. Parameters: type - The name of the type of the attribute. Parameters: reqTime - Whether this attribute holds a request-time Attribute. |
TagAttributeInfo | public TagAttributeInfo(String name, boolean required, String type, boolean reqTime, boolean fragment)(Code) | | JSP 2.0 Constructor for TagAttributeInfo.
This class is to be instantiated only from the
TagLibrary code under request from some JSP code that is parsing a
TLD (Tag Library Descriptor).
Parameters: name - The name of the attribute. Parameters: required - If this attribute is required in tag instances. Parameters: type - The name of the type of the attribute. Parameters: reqTime - Whether this attribute holds a request-time Attribute. Parameters: fragment - Whether this attribute is of type JspFragment since: 2.0 |
canBeRequestTime | public boolean canBeRequestTime()(Code) | | Whether this attribute can hold a request-time value.
if the attribute can hold a request-time value. |
getIdAttribute | public static TagAttributeInfo getIdAttribute(TagAttributeInfo a)(Code) | | Convenience static method that goes through an array of TagAttributeInfo
objects and looks for "id".
Parameters: a - An array of TagAttributeInfo The TagAttributeInfo reference with name "id" |
getName | public String getName()(Code) | | The name of this attribute.
the name of the attribute |
getTypeName | public String getTypeName()(Code) | | The type (as a String) of this attribute.
the type of the attribute |
isFragment | public boolean isFragment()(Code) | | Whether this attribute is of type JspFragment.
if the attribute is of type JspFragment since: 2.0 |
isRequired | public boolean isRequired()(Code) | | Whether this attribute is required.
if the attribute is required. |
toString | public String toString()(Code) | | Returns a String representation of this TagAttributeInfo, suitable
for debugging purposes.
a String representation of this TagAttributeInfo |
|
|
|