Search in sources :

Example 1 with DisplayNames

use of org.jboss.annotation.javaee.DisplayNames in project wildfly by wildfly.

the class WarAnnotationDeploymentProcessor method getDescriptionGroup.

protected DescriptionGroupMetaData getDescriptionGroup(String description, String displayName, String smallIcon, String largeIcon) {
    DescriptionGroupMetaData dg = null;
    if (description.length() > 0 || displayName.length() > 0 || smallIcon.length() > 0 || largeIcon.length() > 0) {
        dg = new DescriptionGroupMetaData();
        Descriptions descriptions = getDescription(description);
        if (descriptions != null)
            dg.setDescriptions(descriptions);
        DisplayNames displayNames = getDisplayName(displayName);
        if (displayNames != null)
            dg.setDisplayNames(displayNames);
        Icons icons = getIcons(smallIcon, largeIcon);
        if (icons != null)
            dg.setIcons(icons);
    }
    return dg;
}
Also used : Descriptions(org.jboss.annotation.javaee.Descriptions) Icons(org.jboss.annotation.javaee.Icons) DescriptionGroupMetaData(org.jboss.metadata.javaee.spec.DescriptionGroupMetaData) DisplayNames(org.jboss.annotation.javaee.DisplayNames)

Aggregations

Descriptions (org.jboss.annotation.javaee.Descriptions)1 DisplayNames (org.jboss.annotation.javaee.DisplayNames)1 Icons (org.jboss.annotation.javaee.Icons)1 DescriptionGroupMetaData (org.jboss.metadata.javaee.spec.DescriptionGroupMetaData)1