public class TagAttributeInfo extends Object
Only the information needed to generate code is included here. Other information like SCHEMA for validation belongs elsewhere.
Modifier and Type | Field and Description |
---|---|
static String |
ID
"id" is wired in to be ID.
|
Constructor and Description |
---|
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.
|
TagAttributeInfo(String name,
boolean required,
String type,
boolean reqTime,
boolean fragment,
String description,
boolean deferredValue,
boolean deferredMethod,
String expectedTypeName,
String methodSignature)
JSP 2.1 Constructor for TagAttributeInfo.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeRequestTime()
Whether this attribute can hold a request-time value.
|
String |
getDescription() |
String |
getExpectedTypeName() |
static TagAttributeInfo |
getIdAttribute(TagAttributeInfo[] tagAttributeInfos)
Convenience static method that goes through an array of TagAttributeInfo
objects and looks for "id".
|
String |
getMethodSignature() |
String |
getName()
The name of this attribute.
|
String |
getTypeName()
The type (as a String) of this attribute.
|
boolean |
isDeferredMethod() |
boolean |
isDeferredValue() |
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.
|
public static final String ID
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 JspFragmentpublic TagAttributeInfo(String name, boolean required, String type, boolean reqTime, boolean fragment, String description, boolean deferredValue, boolean deferredMethod, String expectedTypeName, String methodSignature)
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 JspFragmentdescription
- Description of this attributedeferredValue
- Does this attribute accept value expressions (written as
Strings) as attribute values the evaluation of which is
deferred until calculated by the tagdeferredMethod
- Does this attribute accept method expressions (written as
Strings) as attribute values the evaluation of which is
deferred until calculated by the tagexpectedTypeName
- The expected type when the deferred value is evaluatedmethodSignature
- The expected method signature if a deferred methodpublic String getName()
public String getTypeName()
public boolean canBeRequestTime()
public boolean isRequired()
public static TagAttributeInfo getIdAttribute(TagAttributeInfo[] tagAttributeInfos)
tagAttributeInfos
- An array of TagAttributeInfopublic boolean isFragment()
public String toString()
public boolean isDeferredMethod()
public boolean isDeferredValue()
public String getDescription()
public String getExpectedTypeName()
public String getMethodSignature()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.