Class CompositeTagAttributeUtils
java.lang.Object
org.apache.myfaces.view.facelets.tag.composite.CompositeTagAttributeUtils
TagAttribute utils for <composite:xxx> TagHandlers.
- Version:
- $Revision$ $Date$
- Author:
- Jakob Korherr (latest modification by $Author$)
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddDevelopmentAttributes(FeatureDescriptor descriptor, FaceletContext ctx, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) Applies the "displayName", "shortDescription", "expert", "hidden", and "preferred" attributes to the BeanDescriptor.static voidaddDevelopmentAttributesLiteral(FeatureDescriptor descriptor, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) Applies the "displayName", "shortDescription", "expert", "hidden", and "preferred" attributes to the BeanDescriptor if they are all literal values.static voidaddUnspecifiedAttributes(FeatureDescriptor descriptor, Tag tag, String[] standardAttributesSorted, FaceletContext ctx) Adds all attributes from the given Tag which are NOT listed in standardAttributesSorted as a ValueExpression to the given BeanDescriptor.static booleanareAttributesLiteral(TagAttribute... attributes) Returns true if all specified attributes are either null or literal.static booleancontainsUnspecifiedAttributes(Tag tag, String[] standardAttributesSorted) Returns true if the given Tag contains attributes that are not specified in standardAttributesSorted.
- 
Method Details- 
addUnspecifiedAttributespublic static void addUnspecifiedAttributes(FeatureDescriptor descriptor, Tag tag, String[] standardAttributesSorted, FaceletContext ctx) Adds all attributes from the given Tag which are NOT listed in standardAttributesSorted as a ValueExpression to the given BeanDescriptor. NOTE that standardAttributesSorted has to be alphabetically sorted in order to use binary search.- Parameters:
- descriptor-
- tag-
- standardAttributesSorted-
- ctx-
 
- 
containsUnspecifiedAttributesReturns true if the given Tag contains attributes that are not specified in standardAttributesSorted. NOTE that standardAttributesSorted has to be alphabetically sorted in order to use binary search.- Parameters:
- tag-
- standardAttributesSorted-
- Returns:
 
- 
addDevelopmentAttributespublic static void addDevelopmentAttributes(FeatureDescriptor descriptor, FaceletContext ctx, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) Applies the "displayName", "shortDescription", "expert", "hidden", and "preferred" attributes to the BeanDescriptor.- Parameters:
- descriptor-
- ctx-
- displayName-
- shortDescription-
- expert-
- hidden-
- preferred-
 
- 
addDevelopmentAttributesLiteralpublic static void addDevelopmentAttributesLiteral(FeatureDescriptor descriptor, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred) Applies the "displayName", "shortDescription", "expert", "hidden", and "preferred" attributes to the BeanDescriptor if they are all literal values. Thus no FaceletContext is necessary.- Parameters:
- descriptor-
- displayName-
- shortDescription-
- expert-
- hidden-
- preferred-
 
- 
areAttributesLiteralReturns true if all specified attributes are either null or literal.- Parameters:
- attributes-
 
 
-