Examples of AnnotationItem


Examples of org.jboss.metadata.spi.retrieval.AnnotationItem

/* 128 */       this.validTime = newValidTime;
/*     */     }
/*     */
/* 131 */     if (this.annotations != null)
/*     */     {
/* 133 */       AnnotationItem result = (AnnotationItem)this.annotations.get(annotationName);
/* 134 */       if (result != null)
/*     */       {
/* 136 */         if (result.isValid())
/* 137 */           return result;
/* 138 */         this.annotations.remove(annotationName);
/*     */       }
/*     */     }
/*     */
/* 142 */     AnnotationItem result = super.retrieveAnnotation(annotationType);
/* 143 */     if ((result != null) && (result.isCachable()))
/*     */     {
/* 145 */       if (this.annotations == null)
/* 146 */         this.annotations = new ConcurrentHashMap();
/* 147 */       this.annotations.put(annotationName, result);
/*     */     }
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.AnnotationItem

/* 56 */     if (object == this)
/* 57 */       return true;
/* 58 */     if ((object == null) || (!(object instanceof AnnotationItem))) {
/* 59 */       return false;
/*    */     }
/* 61 */     AnnotationItem other = (AnnotationItem)object;
/* 62 */     return getAnnotation().annotationType().equals(other.getAnnotation().annotationType());
/*    */   }
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.AnnotationItem

/* 54 */     if (object == this)
/* 55 */       return true;
/* 56 */     if ((object == null) || (!(object instanceof AnnotationItem))) {
/* 57 */       return false;
/*    */     }
/* 59 */     AnnotationItem other = (AnnotationItem)object;
/* 60 */     return getAnnotation().annotationType().equals(other.getAnnotation().annotationType());
/*    */   }
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.AnnotationItem

/*     */
/*     */   public <T> MetaDataItem<T> retrieveMetaData(Class<T> type)
/*     */   {
/*  99 */     if (!type.isAnnotation())
/* 100 */       return null;
/* 101 */     AnnotationItem annotation = retrieveAnnotation(type);
/* 102 */     if (annotation == null)
/* 103 */       return null;
/* 104 */     return new AnnotationToMetaDataBridge(annotation);
/*     */   }
View Full Code Here

Examples of org.jboss.metadata.spi.retrieval.AnnotationItem

/*     */
/*     */   public <T extends Annotation> AnnotationItem<T> retrieveAnnotation(Class<T> annotationType)
/*     */   {
/* 215 */     for (MetaDataRetrieval retrieval : this.retrievals)
/*     */     {
/* 217 */       AnnotationItem item = retrieval.retrieveAnnotation(annotationType);
/* 218 */       if (item != null) {
/* 219 */         return item;
/*     */       }
/*     */     }
/* 222 */     if (this.parent != null) {
View Full Code Here

Examples of org.jibx.schema.elements.AnnotationItem

            StringWriter writer = new StringWriter();
            AnnotationElement anno = element.getAnnotation();
            if (anno != null) {
                FilteredSegmentList items = anno.getItemsList();
                for (int i = 0; i < items.size(); i++) {
                    AnnotationItem item = (AnnotationItem)items.get(i);
                    if (item instanceof DocumentationElement) {
                        DocumentationElement doc = (DocumentationElement)item;
                        List contents = doc.getContent();
                        if (contents != null) {
                            for (Iterator iter = contents.iterator(); iter.hasNext();) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.