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 java.lang.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(java.beans.FeatureDescriptor descriptor,
javax.faces.view.facelets.FaceletContext ctx,
javax.faces.view.facelets.TagAttribute displayName,
javax.faces.view.facelets.TagAttribute shortDescription,
javax.faces.view.facelets.TagAttribute expert,
javax.faces.view.facelets.TagAttribute hidden,
javax.faces.view.facelets.TagAttribute preferred)
Applies the "displayName", "shortDescription", "expert", "hidden",
and "preferred" attributes to the BeanDescriptor. |
static void |
addDevelopmentAttributesLiteral(java.beans.FeatureDescriptor descriptor,
javax.faces.view.facelets.TagAttribute displayName,
javax.faces.view.facelets.TagAttribute shortDescription,
javax.faces.view.facelets.TagAttribute expert,
javax.faces.view.facelets.TagAttribute hidden,
javax.faces.view.facelets.TagAttribute preferred)
Applies the "displayName", "shortDescription", "expert", "hidden",
and "preferred" attributes to the BeanDescriptor if they are all literal values. |
static void |
addUnspecifiedAttributes(java.beans.FeatureDescriptor descriptor,
javax.faces.view.facelets.Tag tag,
java.lang.String[] standardAttributesSorted,
javax.faces.view.facelets.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(javax.faces.view.facelets.TagAttribute... attributes)
Returns true if all specified attributes are either null or literal. |
static boolean |
containsUnspecifiedAttributes(javax.faces.view.facelets.Tag tag,
java.lang.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(java.beans.FeatureDescriptor descriptor,
javax.faces.view.facelets.Tag tag,
java.lang.String[] standardAttributesSorted,
javax.faces.view.facelets.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(javax.faces.view.facelets.Tag tag,
java.lang.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(java.beans.FeatureDescriptor descriptor,
javax.faces.view.facelets.FaceletContext ctx,
javax.faces.view.facelets.TagAttribute displayName,
javax.faces.view.facelets.TagAttribute shortDescription,
javax.faces.view.facelets.TagAttribute expert,
javax.faces.view.facelets.TagAttribute hidden,
javax.faces.view.facelets.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(java.beans.FeatureDescriptor descriptor,
javax.faces.view.facelets.TagAttribute displayName,
javax.faces.view.facelets.TagAttribute shortDescription,
javax.faces.view.facelets.TagAttribute expert,
javax.faces.view.facelets.TagAttribute hidden,
javax.faces.view.facelets.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(javax.faces.view.facelets.TagAttribute... attributes)
- Returns true if all specified attributes are either null or literal.
- Parameters:
attributes
-
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.