Package org.jboss.metadata.javaee.spec

Examples of org.jboss.metadata.javaee.spec.DescriptionGroupMetaData


         context.setPublicId(org.apache.catalina.startup.Constants.WebDtdPublicId_23);
      else
         context.setPublicId(org.apache.catalina.startup.Constants.WebDtdPublicId_22);
     
      // Display name
      DescriptionGroupMetaData dg = metaData.getDescriptionGroup();
      if (dg != null)
      {
         String displayName = dg.getDisplayName();
         if (displayName != null)
         {
            context.setDisplayName(displayName);
         }
      }
View Full Code Here


                  tagInfo.setBodyContent(tagMetaData.getBodyContent().toString());
               tagInfo.setDynamicAttributes(tagMetaData.getDynamicAttributes());
               // Description group
               if (tagMetaData.getDescriptionGroup() != null)
               {
                  DescriptionGroupMetaData descriptionGroup = tagMetaData.getDescriptionGroup();
                  if (descriptionGroup.getIcons() != null && descriptionGroup.getIcons().value() != null
                        && (descriptionGroup.getIcons().value().length > 0))
                  {
                     Icon icon = descriptionGroup.getIcons().value()[0];
                     tagInfo.setLargeIcon(icon.largeIcon());
                     tagInfo.setSmallIcon(icon.smallIcon());
                  }
                  tagInfo.setInfoString(descriptionGroup.getDescription());
                  tagInfo.setDisplayName(descriptionGroup.getDisplayName());
               }
               // Variable
               if (tagMetaData.getVariables() != null)
               {
                  for (VariableMetaData variableMetaData : tagMetaData.getVariables())
View Full Code Here

         name = getName(element);
      ref.setServiceRefName(name);
      if(annotation.mappedName().length() > 0)
         ref.setMappedName(annotation.mappedName());
      ref.setAnnotatedElement(element);
      DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description());
      if(dg != null)
         ref.setDescriptionGroup(dg);
      if(annotation.type() != Object.class)
         ref.setServiceRefType(annotation.type().getName());
      else
View Full Code Here

         name = getName(element);
      ref.setServiceRefName(name);
      if(annotation.mappedName().length() > 0)
         ref.setMappedName(annotation.mappedName());
      ref.setAnnotatedElement(element);
      DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description());
      if(dg != null)
         ref.setDescriptionGroup(dg);
      if(annotation.type() != Object.class)
         ref.setServiceRefType(annotation.type().getName());
      else
View Full Code Here

      bean.setEjbName(ejbName);
      if(mappedName != null && mappedName.length() > 0)
         bean.setMappedName(mappedName);
      if(description != null && description.length() > 0)
      {
         DescriptionGroupMetaData descriptionGroup = new DescriptionGroupMetaData();
         DescriptionsImpl descriptions = new DescriptionsImpl();
         DescriptionImpl descriptionImpl = new DescriptionImpl();
         descriptionImpl.setDescription(description);
         descriptions.add(descriptionImpl);
         descriptionGroup.setDescriptions(descriptions);
         bean.setDescriptionGroup(descriptionGroup);
      }

      TransactionManagement txMgmt = finder.getAnnotation(beanClass, TransactionManagement.class);
      TransactionManagementType txType = TransactionManagementType.CONTAINER;
View Full Code Here

         metaData.setEjbName(annotation.name());
      else
         metaData.setEjbName(beanClass.getSimpleName());
      if(annotation.description().length() > 0)
      {
         DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description());
         metaData.setDescriptionGroup(dg);
      }
      if(annotation.mappedName().length() > 0)
         metaData.setMappedName(annotation.mappedName());
      if(annotation.messageListenerInterface() != Object.class)
View Full Code Here

      }
      return descriptions;
   }
   public static DescriptionGroupMetaData getDescriptionGroup(String description)
   {
      DescriptionGroupMetaData dg = null;
      if(description.length() > 0)
      {
         dg = new DescriptionGroupMetaData();
         Descriptions descriptions = getDescription(description);
         dg.setDescriptions(descriptions);
      }
      return dg;     
   }
View Full Code Here

   private static final long serialVersionUID = 1;

   public String getDisplayName()
   {
      String name = null;
      DescriptionGroupMetaData group = getDescriptionGroup();
      if (group != null)
      {
         name = group.getDisplayName();
      }
      return name;
   }
View Full Code Here

      }
      return name;
   }
   public void setDisplayName(String name)
   {
      DescriptionGroupMetaData group = getDescriptionGroup();
      if(group == null)
         group = new DescriptionGroupMetaData();
      DisplayNameImpl dn = new DisplayNameImpl();
      dn.setDisplayName(name);
      DisplayNamesImpl names = new DisplayNamesImpl();
      names.add(dn);
      group.setDisplayNames(names);
      setDescriptionGroup(group);
   }
View Full Code Here

   }

   public String getDescription()
   {
      String desc = null;
      DescriptionGroupMetaData group = getDescriptionGroup();
      if (group != null)
      {
         desc = group.getDescription();
      }
      return desc;     
   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.javaee.spec.DescriptionGroupMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.