Package org.jboss.test.xml.pojoserver.metadata

Examples of org.jboss.test.xml.pojoserver.metadata.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


            assertEquals("value0", ((StringValueMetaData) list.get(0)).getValue());
            assertEquals("value1", ((StringValueMetaData) list.get(1)).getValue());
         }
         else if("aSet".equals(name))
         {
            AbstractSetMetaData set = (AbstractSetMetaData) prop.getValue();
            assertNotNull(set);
            assertEquals(2, set.size());
            boolean found0 = false;
            boolean found1 = false;
            for (Iterator j = set.iterator(); j.hasNext();)
            {
               StringValueMetaData value = (StringValueMetaData) j.next();
               assertNull(value.getType());
               String stringValue = (String) value.getValue();
               if ("value0".equals(stringValue))
View Full Code Here

            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

TOP

Related Classes of org.jboss.test.xml.pojoserver.metadata.AbstractSetMetaData

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.