org.apache.myfaces.view.facelets.tag.composite
Class CompositeTagAttributeUtils
java.lang.Object
org.apache.myfaces.view.facelets.tag.composite.CompositeTagAttributeUtils
public final class CompositeTagAttributeUtils
- extends Object
TagAttribute utils for TagHandlers.
- Version:
- $Revision: 964806 $ $Date: 2010-07-16 09:24:28 -0500 (Fri, 16 Jul 2010) $
- Author:
- Jakob Korherr (latest modification by $Author: jakobk $)
Method Summary |
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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
-
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.