Package org.jboss.metadata.javaee.spec

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


      String[] description = authenticationmechanism.description();
      if (description != null)
      {
         if (ammd.getDescriptions() == null)
         {
            DescriptionsImpl descsImpl = new DescriptionsImpl();
            ammd.setDescriptions(descsImpl);
         }
         for (String desc : description)
         {
            DescriptionImpl descImpl = new DescriptionImpl();
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;
    }

    protected 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

        }
        return metaData;
    }

    protected 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

/*  81 */     if ((mappedName != null) && (mappedName.length() > 0))
/*  82 */       bean.setMappedName(mappedName);
/*  83 */     if ((description != null) && (description.length() > 0))
/*     */     {
/*  85 */       DescriptionGroupMetaData descriptionGroup = new DescriptionGroupMetaData();
/*  86 */       DescriptionsImpl descriptions = new DescriptionsImpl();
/*  87 */       DescriptionImpl descriptionImpl = new DescriptionImpl();
/*  88 */       descriptionImpl.setDescription(description);
/*  89 */       descriptions.add(descriptionImpl);
/*  90 */       descriptionGroup.setDescriptions(descriptions);
/*  91 */       bean.setDescriptionGroup(descriptionGroup);
/*     */     }
/*     */
/*  94 */     TransactionManagement txMgmt = (TransactionManagement)this.finder.getAnnotation(beanClass, TransactionManagement.class);
View Full Code Here

/* 118 */     return metaData;
/*     */   }
/*     */
/*     */   public static Descriptions getDescription(String description)
/*     */   {
/* 123 */     DescriptionsImpl descriptions = null;
/* 124 */     if (description.length() > 0)
/*     */     {
/* 126 */       DescriptionImpl di = new DescriptionImpl();
/* 127 */       di.setDescription(description);
/* 128 */       descriptions = new DescriptionsImpl();
/* 129 */       descriptions.add(di);
/*     */     }
/* 131 */     return descriptions;
/*     */   }
View Full Code Here

/*  87 */       ref.setBeanInterface(getType(element));
/*  88 */     if (annotation.description().length() > 0)
/*     */     {
/*  90 */       DescriptionImpl description = new DescriptionImpl();
/*  91 */       description.setDescription(annotation.description());
/*  92 */       DescriptionsImpl descriptions = new DescriptionsImpl();
/*  93 */       descriptions.add(description);
/*  94 */       ref.setDescriptions(descriptions);
/*     */     }
/*  96 */     if (annotation.beanName().length() > 0)
/*  97 */       ref.setLink(annotation.beanName());
/*  98 */     if (annotation.mappedName().length() > 0) {
View Full Code Here

/*  66 */     super(metaData, org.jboss.metadata.ejb.spec.SecurityIdentityMetaData.class);
/*     */   }
/*     */
/*     */   public String getDescription()
/*     */   {
/*  76 */     DescriptionsImpl descriptions = (DescriptionsImpl)((org.jboss.metadata.ejb.spec.SecurityIdentityMetaData)getDelegate()).getDescriptions();
/*  77 */     if ((descriptions == null) || (descriptions.isEmpty()))
/*  78 */       return null;
/*  79 */     return ((DescriptionImpl)descriptions.iterator().next()).getDescription();
/*     */   }
View Full Code Here

/*    */
/*    */   public void setDescription(String desc) {
/* 92 */     DescriptionGroupMetaData group = getDescriptionGroup();
/* 93 */     if (group == null)
/* 94 */       group = new DescriptionGroupMetaData();
/* 95 */     DescriptionsImpl descriptions = new DescriptionsImpl();
/* 96 */     DescriptionImpl di = new DescriptionImpl();
/* 97 */     di.setDescription(desc);
/* 98 */     descriptions.add(di);
/* 99 */     group.setDescriptions(descriptions);
/*    */   }
View Full Code Here

/* 86 */     return ((org.jboss.metadata.javaee.spec.SecurityRoleRefMetaData)getDelegate()).getRoleLink();
/*    */   }
/*    */
/*    */   public String getDescription()
/*    */   {
/* 96 */     DescriptionsImpl descriptions = (DescriptionsImpl)((org.jboss.metadata.javaee.spec.SecurityRoleRefMetaData)getDelegate()).getDescriptions();
/* 97 */     if ((descriptions == null) || (descriptions.isEmpty()))
/* 98 */       return null;
/* 99 */     return ((DescriptionImpl)descriptions.iterator().next()).getDescription();
/*    */   }
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.