Package org.jboss.metadata.spi.retrieval.basic

Examples of org.jboss.metadata.spi.retrieval.basic.BasicAnnotationsItem


   /**
    * Invalidate the annotations item
    */
   protected void invalidateAnnotationsItem()
   {
      BasicAnnotationsItem temp = cachedAnnotationsItem;
      if (temp != null)
      {
         temp.invalidate();
         cachedAnnotationsItem = null;
      }
   }
View Full Code Here


    *
    * @return no annotations
    */
   protected BasicAnnotationsItem noAnnotations()
   {
      BasicAnnotationsItem result = new BasicAnnotationsItem(this, BasicAnnotationsItem.NO_ANNOTATION_ITEMS);
      cachedAnnotationsItem = result;
      return result;
   }
View Full Code Here

      return cachable;
   }

   public AnnotationsItem retrieveAnnotations()
   {
      BasicAnnotationsItem result = cachedAnnotationsItem;
      if (result != null && result.isValid())
         return result;
     
      Map<String, BasicAnnotationItem> temp = annotations;
      if (temp == null)
         return noAnnotations();
     
      Collection<BasicAnnotationItem> values = temp.values();
      if (values.isEmpty())
         return noAnnotations();
     
      AnnotationItem[] items = values.toArray(new AnnotationItem[values.size()]);
      result = new BasicAnnotationsItem(this, items);
      cachedAnnotationsItem = result;
      return result;
   }
View Full Code Here

   /**
    * Invalidate the annotations item
    */
   protected void invalidateAnnotationsItem()
   {
      BasicAnnotationsItem temp = cachedAnnotationsItem;
      if (temp != null)
      {
         temp.invalidate();
         cachedAnnotationsItem = null;
      }
   }
View Full Code Here

    *
    * @return no annotations
    */
   protected BasicAnnotationsItem noAnnotations()
   {
      BasicAnnotationsItem result = new BasicAnnotationsItem(this, BasicAnnotationsItem.NO_ANNOTATION_ITEMS);
      cachedAnnotationsItem = result;
      return result;
   }
View Full Code Here

/* 112 */     return this.cachable;
/*     */   }
/*     */
/*     */   public AnnotationsItem retrieveAnnotations()
/*     */   {
/* 117 */     BasicAnnotationsItem result = this.cachedAnnotationsItem;
/* 118 */     if ((result != null) && (result.isValid())) {
/* 119 */       return result;
/*     */     }
/* 121 */     Map temp = this.annotations;
/* 122 */     if (temp == null) {
/* 123 */       return noAnnotations();
/*     */     }
/* 125 */     Collection values = temp.values();
/* 126 */     if (values.isEmpty()) {
/* 127 */       return noAnnotations();
/*     */     }
/* 129 */     AnnotationItem[] items = (AnnotationItem[])values.toArray(new AnnotationItem[values.size()]);
/* 130 */     result = new BasicAnnotationsItem(this, items);
/* 131 */     this.cachedAnnotationsItem = result;
/* 132 */     return result;
/*     */   }
View Full Code Here

/* 364 */     return (isNullOrEmpty(this.annotations)) && (isNullOrEmpty(this.metaDataByName)) && (super.isEmpty());
/*     */   }
/*     */
/*     */   protected void invalidateAnnotationsItem()
/*     */   {
/* 372 */     BasicAnnotationsItem temp = this.cachedAnnotationsItem;
/* 373 */     if (temp != null)
/*     */     {
/* 375 */       temp.invalidate();
/* 376 */       this.cachedAnnotationsItem = null;
/*     */     }
/*     */   }
View Full Code Here

/*     */     }
/*     */   }
/*     */
/*     */   protected BasicAnnotationsItem noAnnotations()
/*     */   {
/* 387 */     BasicAnnotationsItem result = new BasicAnnotationsItem(this, BasicAnnotationsItem.NO_ANNOTATION_ITEMS);
/* 388 */     this.cachedAnnotationsItem = result;
/* 389 */     return result;
/*     */   }
View Full Code Here

      return cachable;
   }

   public AnnotationsItem retrieveAnnotations()
   {
      BasicAnnotationsItem result = cachedAnnotationsItem;
      if (result != null && result.isValid())
         return result;
     
      Map<String, BasicAnnotationItem> temp = annotations;
      if (temp == null)
         return noAnnotations();
     
      Collection<BasicAnnotationItem> values = temp.values();
      if (values.isEmpty())
         return noAnnotations();
     
      AnnotationItem[] items = values.toArray(new AnnotationItem[values.size()]);
      result = new BasicAnnotationsItem(this, items);
      cachedAnnotationsItem = result;
      return result;
   }
View Full Code Here

   /**
    * Invalidate the annotations item
    */
   protected void invalidateAnnotationsItem()
   {
      BasicAnnotationsItem temp = cachedAnnotationsItem;
      if (temp != null)
      {
         temp.invalidate();
         cachedAnnotationsItem = null;
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.spi.retrieval.basic.BasicAnnotationsItem

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.