Package org.jboss.metadata.javaee.spec

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


         ref.setBeanInterface(getType(element));
      if(annotation.description().length() > 0)
      {
         DescriptionImpl description = new DescriptionImpl();
         description.setDescription(annotation.description());
         DescriptionsImpl descriptions = new DescriptionsImpl();
         descriptions.add(description);
         ref.setDescriptions(descriptions);
      }
      if(annotation.beanName().length() > 0)
         ref.setLink(annotation.beanName());
      if(annotation.mappedName().length() > 0)
View Full Code Here


         ref.setBeanInterface(getType(element));
      if(annotation.description().length() > 0)
      {
         DescriptionImpl description = new DescriptionImpl();
         description.setDescription(annotation.description());
         DescriptionsImpl descriptions = new DescriptionsImpl();
         descriptions.add(description);
         ref.setDescriptions(descriptions);
      }
      if(annotation.beanName().length() > 0)
         ref.setLink(annotation.beanName());
      if(annotation.mappedName().length() > 0)
View Full Code Here

    *
    * @return the description
    */
   public String getDescription()
   {
      DescriptionsImpl descriptions = (DescriptionsImpl) getDelegate().getDescriptions();
      if (descriptions == null || descriptions.isEmpty())
         return null;
      return descriptions.iterator().next().getDescription();
   }
View Full Code Here

    *
    * @return the description
    */
   public String getDescription()
   {
      DescriptionsImpl descriptions = (DescriptionsImpl) getDelegate().getDescriptions();
      if (descriptions == null || descriptions.isEmpty())
         return null;
      return descriptions.iterator().next().getDescription();
   }
View Full Code Here

      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);
View Full Code Here

      return metaData;
   }

   public static Descriptions getDescription(String description)
   {
      DescriptionsImpl descriptions = null;
      if(description.length() > 0)
      {
         DescriptionImpl di = new DescriptionImpl();
         di.setDescription(description);
         descriptions = new DescriptionsImpl();
         descriptions.add(di);
      }
      return descriptions;
   }
View Full Code Here

   public void setDescription(String desc)
   {
      DescriptionGroupMetaData group = getDescriptionGroup();
      if(group == null)
         group = new DescriptionGroupMetaData();
      DescriptionsImpl descriptions = new DescriptionsImpl();
      DescriptionImpl di = new DescriptionImpl();
      di.setDescription(desc);
      descriptions.add(di);
      group.setDescriptions(descriptions);
   }
View Full Code Here

      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);
View Full Code Here

         ref.setBeanInterface(getType(element));
      if(annotation.description().length() > 0)
      {
         DescriptionImpl description = new DescriptionImpl();
         description.setDescription(annotation.description());
         DescriptionsImpl descriptions = new DescriptionsImpl();
         descriptions.add(description);
         ref.setDescriptions(descriptions);
      }
      if(annotation.beanName().length() > 0)
         ref.setLink(annotation.beanName());
      if(annotation.mappedName().length() > 0)
View Full Code Here

      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);
View Full Code Here

TOP

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

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.