|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagAttributeInfo
public class TagAttributeInfo
Information about tag attributes. This information comes from the
Tag Library Descriptor (TLD). Generally, a TagExtraInfo class will
grab this information from the TagLibraryInfo class.
<tag>
<name>foo</name>
<tagclass>com.caucho.tags.FooTag</tagclass>
<attribute>
<name>bar</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</tag>
Field Summary | |
---|---|
static java.lang.String |
ID
ID is "id" |
Constructor Summary | |
---|---|
TagAttributeInfo(java.lang.String name,
boolean required,
java.lang.String type,
boolean reqTime)
Creates a new TagAttributeInfo object. |
|
TagAttributeInfo(java.lang.String name,
boolean required,
java.lang.String type,
boolean reqTime,
boolean fragment)
Creates a new TagAttributeInfo object. |
|
TagAttributeInfo(java.lang.String name,
boolean required,
java.lang.String type,
boolean reqTime,
boolean fragment,
java.lang.String description,
boolean deferredValue,
boolean deferredMethod,
java.lang.String expectedTypeName,
java.lang.String methodSignature)
Creates a new TagAttributeInfo object. |
Method Summary | |
---|---|
boolean |
canBeRequestTime()
Returns true if the attribute can be a request time attribute (<%= ... |
java.lang.String |
getDescription()
Returns the tag's description. |
java.lang.String |
getExpectedTypeName()
Returns the expected type of the attribute. |
static TagAttributeInfo |
getIdAttribute(TagAttributeInfo[] a)
Convenience for finding a TagAttributeInfo in a TagAttributeInfo array. |
java.lang.String |
getMethodSignature()
Returns the expected method signature. |
java.lang.String |
getName()
Returns the attribute name |
java.lang.String |
getTypeName()
Returns the type name of the attribute. |
boolean |
isDeferredMethod()
Returns true if the attribute is deferred. |
boolean |
isDeferredValue()
Returns true if the attribute is deferred. |
boolean |
isFragment()
True if the attribute is of type fragment |
boolean |
isRequired()
True if the attribute must exist in the tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID
Constructor Detail |
---|
public TagAttributeInfo(java.lang.String name, boolean required, java.lang.String type, boolean reqTime)
name
- the name of the attributerequired
- true if the attribute must be present in the tagreqTime
- true if the attribute can be a request time attributetype
- the Java type of the attributepublic TagAttributeInfo(java.lang.String name, boolean required, java.lang.String type, boolean reqTime, boolean fragment)
name
- the name of the attributerequired
- true if the attribute must be present in the tagreqTime
- true if the attribute can be a request time attributetype
- the Java type of the attributepublic TagAttributeInfo(java.lang.String name, boolean required, java.lang.String type, boolean reqTime, boolean fragment, java.lang.String description, boolean deferredValue, boolean deferredMethod, java.lang.String expectedTypeName, java.lang.String methodSignature)
name
- the name of the attributerequired
- true if the attribute must be present in the tagreqTime
- true if the attribute can be a request time attributetype
- the Java type of the attributeMethod Detail |
---|
public java.lang.String getName()
public java.lang.String getTypeName()
public boolean canBeRequestTime()
public boolean isRequired()
public boolean isFragment()
public java.lang.String getDescription()
public java.lang.String getExpectedTypeName()
public java.lang.String getMethodSignature()
public boolean isDeferredMethod()
public boolean isDeferredValue()
public static TagAttributeInfo getIdAttribute(TagAttributeInfo[] a)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |