Examples of clazz()


Examples of org.data2semantics.platform.core.data.JavaType.clazz()

            Class<?>[] paramTypes = c.getParameterTypes();
            JavaType jType = new JavaType(paramTypes[i]);
            if(inputNameToTypeMap.containsKey(in.name())){
              JavaType storedType = inputNameToTypeMap.get(in.name());
              if(!storedType.equals(jType)){
                errors.add("Inputs named as : '"+in.name() + "' are declared using  different types : " + storedType.clazz()+ " != "+jType.clazz());
              }
            } else {
              inputNameToTypeMap.put(in.name(), jType);
            }
          }
View Full Code Here

Examples of org.data2semantics.platform.core.data.JavaType.clazz()

              Class <?>[] paramTypes = m.getParameterTypes();
              JavaType jType = new JavaType(paramTypes[i]);
              if(inputNameToTypeMap.containsKey(in.name())){
                JavaType storedType = inputNameToTypeMap.get(in.name());
                if(!storedType.equals(jType)){
                  errors.add("Inputs named as : '"+in.name() + "' are declared using  different types : " + storedType.clazz()+ " != "+jType.clazz());
                }
              } else {
                inputNameToTypeMap.put(in.name(), jType);
                  }   
            }
View Full Code Here

Examples of org.data2semantics.platform.core.data.JavaType.clazz()

    }
   
    private static boolean isList(DataType outputType) {
      if(!(outputType instanceof JavaType)) return false;
      JavaType jType = (JavaType)outputType;
      return List.class.isAssignableFrom(jType.clazz());
    }

    /**
     * Determines whether the builder currently represents a consistent,
     * runnable workflow.  
View Full Code Here

Examples of org.jboss.test.annotation.factory.support.Complex.clazz()

      assertEquals(123456789.99, complex.dbl());
      assertEquals(1, complex.shrt());
      assertEquals(987654321, complex.lng());
      assertEquals(123, complex.integer());
      assertEquals(true, complex.bool());
      assertEquals(Long.class, complex.clazz());
      assertEquals("Yes", complex.annotation().value());
      assertEquals(new String[]{"Test", "123"}, complex.array());
      assertEquals(MyEnum.TWO, complex.enumVal());
      assertArrays(new int[]{1, 2, 3}, complex.primitiveArray());
   }
View Full Code Here

Examples of org.jboss.test.annotation.factory.support.Complex.clazz()

      assertEquals(123456789.99, complex.dbl());
      assertEquals(1, complex.shrt());
      assertEquals(987654321, complex.lng());
      assertEquals(123, complex.integer());
      assertEquals(true, complex.bool());
      assertEquals(Long.class, complex.clazz());
      assertEquals("Yes", complex.annotation().value());
      assertEquals(new String[]{"Test", "123"}, complex.array());
      assertEquals(MyEnum.TWO, complex.enumVal());
      assertArrays(new int[]{1, 2, 3}, complex.primitiveArray());
   }
View Full Code Here

Examples of org.jboss.test.annotation.factory.support.ComplexWithDefault.clazz()

      assertEquals(2.3, complex.dbl());
      assertEquals(2, complex.shrt());
      assertEquals(123456789, complex.lng());
      assertEquals(123, complex.integer());
      assertEquals(true, complex.bool());
      assertEquals(String.class, complex.clazz());
      assertEquals(MyEnum.ONE, complex.enumVal());
      assertEquals("default", complex.annotation().value());
      assertEquals(new String[]{"The", "defaults"}, complex.array());

      int[] expectedIntArray = new int[] {1,2,3};
View Full Code Here

Examples of org.jboss.test.kernel.deployment.xml.support.AnnotationWithAttributes.clazz()

      ann = annotationList.get(1).getAnnotationInstance();
      assertNotNull(ann);
      assertEquals(AnnotationWithAttributes.class.getName(), ann.annotationType().getName());
      assertTrue(ann instanceof AnnotationWithAttributes);
      AnnotationWithAttributes ann1 = (AnnotationWithAttributes)ann;
      assertNotNull(ann1.clazz());
      assertEquals(Integer.class, ann1.clazz());
      assertNotNull(ann1.integer());
      assertEquals(100, ann1.integer());
      assertNotNull(ann1.str());
      assertEquals("Annotations are nice", ann1.str());
View Full Code Here

Examples of org.jboss.test.kernel.deployment.xml.support.AnnotationWithAttributes.clazz()

      assertNotNull(ann);
      assertEquals(AnnotationWithAttributes.class.getName(), ann.annotationType().getName());
      assertTrue(ann instanceof AnnotationWithAttributes);
      AnnotationWithAttributes ann1 = (AnnotationWithAttributes)ann;
      assertNotNull(ann1.clazz());
      assertEquals(Integer.class, ann1.clazz());
      assertNotNull(ann1.integer());
      assertEquals(100, ann1.integer());
      assertNotNull(ann1.str());
      assertEquals("Annotations are nice", ann1.str());
   }
View Full Code Here

Examples of org.jboss.test.kernel.deployment.xml.support.AnnotationWithAttributes.clazz()

      AbstractAnnotationMetaData annotation = getAnnotation("AnnotationWithAttributes.xml");
      Annotation ann = annotation.getAnnotationInstance();
      assertEquals(AnnotationWithAttributes.class.getName(), ann.annotationType().getName());
      assertTrue(ann instanceof AnnotationWithAttributes);
      AnnotationWithAttributes ann1 = (AnnotationWithAttributes)ann;
      assertNotNull(ann1.clazz());
      assertEquals(Integer.class, ann1.clazz());
      assertNotNull(ann1.integer());
      assertEquals(100, ann1.integer());
      assertNotNull(ann1.str());
      assertEquals("Annotations are nice", ann1.str());
View Full Code Here

Examples of org.jboss.test.kernel.deployment.xml.support.AnnotationWithAttributes.clazz()

      Annotation ann = annotation.getAnnotationInstance();
      assertEquals(AnnotationWithAttributes.class.getName(), ann.annotationType().getName());
      assertTrue(ann instanceof AnnotationWithAttributes);
      AnnotationWithAttributes ann1 = (AnnotationWithAttributes)ann;
      assertNotNull(ann1.clazz());
      assertEquals(Integer.class, ann1.clazz());
      assertNotNull(ann1.integer());
      assertEquals(100, ann1.integer());
      assertNotNull(ann1.str());
      assertEquals("Annotations are nice", ann1.str());
   }
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.