public static void addDevelopmentAttributesLiteral ( FeatureDescriptor descriptor , TagAttribute displayName , TagAttribute shortDescription , TagAttribute expert , TagAttribute hidden , TagAttribute preferred ) { if ( displayName != null ) { descriptor . setDisplayName ( displayName . getValue ( ) ) ; } if ( shortDescription != null ) { descriptor . setShortDescription ( shortDescription . getValue ( ) ) ; } if ( expert != null ) { descriptor . setExpert ( Boolean . valueOf ( expert . getValue ( ) ) ) ; } if ( hidden != null ) { descriptor . setHidden ( Boolean . valueOf ( hidden . getValue ( ) ) ) ; } if ( preferred != null ) { descriptor . setPreferred ( Boolean . valueOf ( preferred . getValue ( ) ) ) ; } }
Applies the displayName shortDescription expert hidden and preferred attributes to the BeanDescriptor if they are all literal values . Thus no FaceletContext is necessary .