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 Summary
Modifier and TypeMethodDescriptionstatic 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.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.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.static boolean
areAttributesLiteral
(TagAttribute... attributes) Returns true if all specified attributes are either null or literal.static boolean
containsUnspecifiedAttributes
(Tag tag, String[] standardAttributesSorted) Returns true if the given Tag contains attributes that are not specified in standardAttributesSorted.
-
Method Details
-
addUnspecifiedAttributes
public 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
-
-
containsUnspecifiedAttributes
Returns 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:
-
addDevelopmentAttributes
public 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
-
-
addDevelopmentAttributesLiteral
public 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
-
-
areAttributesLiteral
Returns true if all specified attributes are either null or literal.- Parameters:
attributes
-
-