Package javax.servlet.jsp.tagext
Class TagAttributeInfo
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagAttributeInfo
-
public class TagAttributeInfo extends java.lang.ObjectInformation on Tag Attributes; 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
Fields Modifier and Type Field Description static java.lang.StringID"id" is wired in to be ID.
-
Constructor Summary
Constructors Constructor Description TagAttributeInfo(java.lang.String name, boolean required, java.lang.String type, boolean reqTime)Constructor for TagAttributeInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeRequestTime()Can this attribute hold a request-time value?static TagAttributeInfogetIdAttribute(TagAttributeInfo[] a)Convenience method that goes through an array of TagAttributeInfo objects and looks for "id".java.lang.StringgetName()java.lang.StringgetTypeName()booleanisRequired()Is this required or not?java.lang.StringtoString()
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
"id" is wired in to be ID. There is no real benefit in having it be something else IDREFs are not handled any differently.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TagAttributeInfo
public TagAttributeInfo(java.lang.String name, boolean required, java.lang.String type, boolean reqTime)Constructor for TagAttributeInfo. No public constructor; 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 attributetype- The name of the type of the attributereqTime- Can this attribute hold a request-time Attribute
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getTypeName
public java.lang.String getTypeName()
-
canBeRequestTime
public boolean canBeRequestTime()
Can this attribute hold a request-time value?
-
isRequired
public boolean isRequired()
Is this required or not?
-
getIdAttribute
public static TagAttributeInfo getIdAttribute(TagAttributeInfo[] a)
Convenience method that goes through an array of TagAttributeInfo objects and looks for "id".
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-