public class TagAttributeInfo
extends java.lang.Object
<tag>
<name>foo</name>
<tagclass>com.caucho.tags.FooTag</tagclass>
<attribute>
<name>bar</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
</tag>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
ID is "id"
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String ID
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 attributepublic 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)