Class TldRuleSet.Attribute
java.lang.Object
org.apache.tomcat.util.descriptor.tld.TldRuleSet.Attribute
- Enclosing class:
TldRuleSet
Intermediate representation of a tag attribute during TLD parsing.
-
Method Summary
Modifier and TypeMethodDescriptionvoidMarks the attribute as a deferred method.voidMarks the attribute as a deferred value.voidsetDescription(String description) Sets the attribute description.voidsetExpectedTypeName(String expectedTypeName) Sets the expected type name for deferred attributes.voidsetFragment(boolean fragment) Sets whether the attribute is a fragment type.voidsetMethodSignature(String methodSignature) Sets the method signature for deferred method attributes.voidSets the attribute name.voidsetRequestTime(boolean requestTime) Sets whether the attribute is evaluated at request time.voidsetRequired(boolean required) Sets whether the attribute is required.voidSets the attribute type, with short name resolution.Converts this intermediate attribute representation to a TagAttributeInfo.
-
Method Details
-
setName
-
setRequired
public void setRequired(boolean required) Sets whether the attribute is required.- Parameters:
required- true if required
-
setType
Sets the attribute type, with short name resolution.- Parameters:
type- the type name
-
setRequestTime
public void setRequestTime(boolean requestTime) Sets whether the attribute is evaluated at request time.- Parameters:
requestTime- true if request-time
-
setFragment
public void setFragment(boolean fragment) Sets whether the attribute is a fragment type.- Parameters:
fragment- true if fragment
-
setDescription
Sets the attribute description.- Parameters:
description- the description
-
setDeferredValue
public void setDeferredValue()Marks the attribute as a deferred value. -
setDeferredMethod
public void setDeferredMethod()Marks the attribute as a deferred method. -
setExpectedTypeName
Sets the expected type name for deferred attributes.- Parameters:
expectedTypeName- the expected type name
-
setMethodSignature
Sets the method signature for deferred method attributes.- Parameters:
methodSignature- the method signature
-
toTagAttributeInfo
Converts this intermediate attribute representation to a TagAttributeInfo.- Returns:
- the TagAttributeInfo
-