Examples of AbstractListMetaData


Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      super(ListValue.class);
   }

   public ValueMetaData createValueMetaData(ListValue annotation)
   {
      AbstractListMetaData list = new AbstractListMetaData();
      if (isAttributePresent(annotation.clazz()))
         list.setType(annotation.clazz().getName());
      if (isAttributePresent(annotation.elementClass()))
         list.setElementType(annotation.elementClass().getName());
      for(Value value : annotation.value())
         list.add(createValueMetaData(value));
      return list;
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

   }

   @SuppressWarnings("unchecked")
   public List<ValueMetaData> createList(String listType, String elementType)
   {
      AbstractListMetaData collection = new AbstractListMetaData();
      if (listType != null)
         collection.setType(listType);
      if (elementType != null)
         collection.setElementType(elementType);
      return (List) collection;
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      return (AbstractListMetaData) value;
   }
  
   public void testList() throws Exception
   {
      AbstractListMetaData collection = getCollection("List.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      assertNull(collection.getElementType());
   }
  
   public void testListWithClass() throws Exception
   {
      AbstractListMetaData collection = getCollection("ListWithClass.xml");
      assertEquals("CollectionClass", collection.getType());
      assertNull(collection.getElementType());
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      assertNull(collection.getElementType());
   }
  
   public void testListWithElementClass() throws Exception
   {
      AbstractListMetaData collection = getCollection("ListWithElementClass.xml");
      assertNull(collection.getType());
      assertEquals("ElementClass", collection.getElementType());
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      assertEquals("ElementClass", collection.getElementType());
   }
  
   public void testListWithValue() throws Exception
   {
      AbstractListMetaData collection = getCollection("ListWithValue.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertValue("Value", getValue(collection));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      assertValue("Value", getValue(collection));
   }
  
   public void testListWithInjection() throws Exception
   {
      AbstractListMetaData collection = getCollection("ListWithInjection.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertInjection(getValue(collection));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      assertInjection(getValue(collection));
   }

   public void testListWithCollection() throws Exception
   {
      AbstractListMetaData collection = getCollection("ListWithCollection.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertCollection(getValue(collection));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      assertCollection(getValue(collection));
   }
  
   public void testListWithList() throws Exception
   {
      AbstractListMetaData collection = getCollection("ListWithList.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertList(getValue(collection));
   }
View Full Code Here

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData

      assertList(getValue(collection));
   }
  
   public void testListWithSet() throws Exception
   {
      AbstractListMetaData collection = getCollection("ListWithSet.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertSet(getValue(collection));
   }
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.