Class TldRuleSet.Attribute
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.tld.TldRuleSet.Attribute
-
- Enclosing class:
- TldRuleSet
public static class TldRuleSet.Attribute extends java.lang.ObjectIntermediate representation of a tag attribute during TLD parsing.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetDeferredMethod()Marks the attribute as a deferred method.voidsetDeferredValue()Marks the attribute as a deferred value.voidsetDescription(java.lang.String description)Sets the attribute description.voidsetExpectedTypeName(java.lang.String expectedTypeName)Sets the expected type name for deferred attributes.voidsetFragment(boolean fragment)Sets whether the attribute is a fragment type.voidsetMethodSignature(java.lang.String methodSignature)Sets the method signature for deferred method attributes.voidsetName(java.lang.String name)Sets the attribute name.voidsetRequestTime(boolean requestTime)Sets whether the attribute is evaluated at request time.voidsetRequired(boolean required)Sets whether the attribute is required.voidsetType(java.lang.String type)Sets the attribute type, with short name resolution.TagAttributeInfotoTagAttributeInfo()Converts this intermediate attribute representation to a TagAttributeInfo.
-
-
-
Method Detail
-
setName
public void setName(java.lang.String name)
Sets the attribute name.- Parameters:
name- the attribute name
-
setRequired
public void setRequired(boolean required)
Sets whether the attribute is required.- Parameters:
required- true if required
-
setType
public void setType(java.lang.String type)
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
public void setDescription(java.lang.String description)
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
public void setExpectedTypeName(java.lang.String expectedTypeName)
Sets the expected type name for deferred attributes.- Parameters:
expectedTypeName- the expected type name
-
setMethodSignature
public void setMethodSignature(java.lang.String methodSignature)
Sets the method signature for deferred method attributes.- Parameters:
methodSignature- the method signature
-
toTagAttributeInfo
public TagAttributeInfo toTagAttributeInfo()
Converts this intermediate attribute representation to a TagAttributeInfo.- Returns:
- the TagAttributeInfo
-
-