Class CompositeTagAttributeUtils


  • public final class CompositeTagAttributeUtils
    extends Object
    TagAttribute utils for <composite:xxx> TagHandlers.
    Version:
    $Revision$ $Date$
    Author:
    Jakob Korherr (latest modification by $Author$)
    • Method Detail

      • 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

        public static boolean containsUnspecifiedAttributes​(Tag tag,
                                                            String[] standardAttributesSorted)
        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

        public static boolean areAttributesLiteral​(TagAttribute... attributes)
        Returns true if all specified attributes are either null or literal.
        Parameters:
        attributes -