Examples of AbstractSetMetaData


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

      assertArray(getValue(collection));
   }
  
   public void testSetWithMap() throws Exception
   {
      AbstractSetMetaData collection = getCollection("SetWithMap.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertMap(getValue(collection));
   }
View Full Code Here

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

      assertMap(getValue(collection));
   }
  
   public void testSetWithNull() throws Exception
   {
      AbstractSetMetaData collection = getCollection("SetWithNull.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertNullValue(getValue(collection));
   }
View Full Code Here

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

      assertNullValue(getValue(collection));
   }
  
   public void testSetWithThis() throws Exception
   {
      AbstractSetMetaData collection = getCollection("SetWithThis.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertThis(getValue(collection));
   }
View Full Code Here

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

      assertThis(getValue(collection));
   }
  
   public void testSetWithWildcard() throws Exception
   {
      AbstractSetMetaData collection = getCollection("SetWithWildcard.xml");
      assertNull(collection.getType());
      assertNull(collection.getElementType());
      assertWildcard(getValue(collection));
   }
View Full Code Here

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

   }

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

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

   }

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

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

      super(SetValue.class);
   }

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

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

            if (collectionQName.equals(name))
               return new AbstractCollectionMetaData();
            else if (listQName.equals(name))
               return new AbstractListMetaData();
            else if (setQName.equals(name))
               return new AbstractSetMetaData();
            else if (arrayQName.equals(name))
               return new AbstractArrayMetaData();
            else
               throw new IllegalArgumentException("Unknown collection qname=" + name);
         }
View Full Code Here

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

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

Examples of org.jboss.test.xb.builder.object.mc.support.model.AbstractSetMetaData

      return (AbstractSetMetaData) value;
   }
  
   public void testSet() throws Exception
   {
      AbstractSetMetaData collection = getCollection();
      assertNull(collection.getType());
      assertNull(collection.getElementType());
   }
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.