Package org.jboss.metadata.javaee.spec

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


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


    }

    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

    }

    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

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

/*     */   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

/*  85 */       ref.setBeanInterface(annotation.beanInterface());
/*     */     else
/*  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)
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

    }

    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

* @author Remy Maucherat
*/
public class DescriptionMetaDataParser extends MetaDataElementParser {

    public static DescriptionImpl parse(XMLStreamReader reader) throws XMLStreamException {
        DescriptionImpl description = new DescriptionImpl();
        // Handle attributes
        final int count = reader.getAttributeCount();
        for (int i = 0; i < count; i ++) {
            final String value = reader.getAttributeValue(i);
            if (reader.getAttributeNamespace(i) != null) {
                continue;
            }
            final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
            switch (attribute) {
                case ID: {
                    description.setId(value);
                    break;
                }
                case LANG: {
                    description.setLanguage(value);
                    break;
                }
                default: throw unexpectedAttribute(reader, i);
            }
        }
        description.setDescription(reader.getElementText());
        return description;
    }
View Full Code Here

TOP

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

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.