public final class CompositeTagAttributeUtils extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static void addUnspecifiedAttributes(FeatureDescriptor descriptor, Tag tag, String[] standardAttributesSorted, FaceletContext ctx)
descriptor
- tag
- standardAttributesSorted
- ctx
- public static boolean containsUnspecifiedAttributes(Tag tag, String[] standardAttributesSorted)
tag
- standardAttributesSorted
- public static void addDevelopmentAttributes(FeatureDescriptor descriptor, FaceletContext ctx, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred)
descriptor
- ctx
- displayName
- shortDescription
- expert
- hidden
- preferred
- public static void addDevelopmentAttributesLiteral(FeatureDescriptor descriptor, TagAttribute displayName, TagAttribute shortDescription, TagAttribute expert, TagAttribute hidden, TagAttribute preferred)
descriptor
- displayName
- shortDescription
- expert
- hidden
- preferred
- public static boolean areAttributesLiteral(TagAttribute... attributes)
attributes
- Copyright © 2020 The Apache Software Foundation. All rights reserved.