Examples of type()


Examples of org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute.type()

    if (componentAttribute != null) {
      String simpleName = d.getSimpleName();
      if (simpleName.startsWith("set")) {
        String attributeStr = simpleName.substring(3, 4).toLowerCase(Locale.ENGLISH) + simpleName.substring(4);
        String methodStr;
        if (componentAttribute.type().length == 1
            && (componentAttribute.type()[0].equals(Boolean.class.getName())
            || componentAttribute.type()[0].equals("boolean"))) {
          methodStr = "is" + simpleName.substring(3);
        } else {
          methodStr = "get" + simpleName.substring(3);
View Full Code Here

Examples of org.apache.olingo.odata2.api.annotation.edm.EdmFunctionImport.ReturnType.type()

          functionReturnType.setMultiplicity(EdmMultiplicity.MANY);
        } else {
          functionReturnType.setMultiplicity(EdmMultiplicity.ONE);
        }

        if (returnType.type() == ReturnType.Type.ENTITY) {
          String entitySet = edmAnnotationFunctionImport.entitySet();
          if (entitySet.equals("")) {
            throw ODataJPAModelException.throwException(ODataJPAModelException.FUNC_ENTITYSET_EXP, null);
          }
          functionImport.setEntitySet(entitySet);
View Full Code Here

Examples of org.apache.olingo.odata2.api.annotation.edm.EdmProperty.type()

  private Object convert(final Field field, final String propertyValue) {
    Class<?> fieldClass = field.getType();
    try {
      EdmProperty property = field.getAnnotation(EdmProperty.class);
      EdmSimpleTypeKind type = mapTypeKind(property.type());
      return type.getEdmSimpleTypeInstance().valueOfString(propertyValue,
          EdmLiteralKind.DEFAULT, null, fieldClass);
    } catch (EdmSimpleTypeException ex) {
      throw new AnnotationRuntimeException("Conversion failed for string property ["
          + propertyValue + "] on field ["
View Full Code Here

Examples of org.apache.onami.test.annotation.Mock.type()

        {
            if ( entry.getValue() instanceof Class<?> )
            {
                Field field = entry.getKey();
                Mock mock = field.getAnnotation( Mock.class );
                mockedObjects.put( entry.getKey(), engine.createMock( (Class<?>) entry.getValue(), mock.type() ) );
            }
        }
    }

   
View Full Code Here

Examples of org.apache.openjpa.persistence.query.DomainObject.type()

        compare(jpql, c);
    }
   
    public void testTypeExpression() {
        DomainObject e = qb.createQueryDefinition(Employee.class);
        e.select(e.type())
         .where(e.type().equal(Exempt.class).not());
       
        String jpql = "select TYPE(e)" +
                      " from Employee e" +
                      " where TYPE(e) <> Exempt";
View Full Code Here

Examples of org.apache.pig.penny.impl.comm.Message.type()

        public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
                throws Exception {
            final Channel channel = ctx.getChannel();
            Message m = (Message)e.getMessage();
            Tuple t = cb.receive(m);
            if (m.type() == Type.DEREG) {
                channel.close();
            }
            if (t != null) {
                if (m.type() == Type.REG) {
                    PhysicalLocation pl = new PhysicalLocation(m.source().logId(), (Integer)t.get(0));
View Full Code Here

Examples of org.apache.tajo.datum.Datum.type()

  @Override
  public void eval(EvalContext ctx, Schema schema, Tuple tuple) {
    IsNullEvalCtx isNullCtx = (IsNullEvalCtx) ctx;
    leftExpr.eval(isNullCtx.predicandContext, schema, tuple);
    Datum result = leftExpr.terminate(((IsNullEvalCtx)ctx).predicandContext);
    ((IsNullEvalCtx) ctx).result = DatumFactory.createBool(isNot ^ (result.type() == TajoDataTypes.Type.NULL));
  }

  @Override
  public Datum terminate(EvalContext ctx) {
    return ((IsNullEvalCtx)ctx).result;
View Full Code Here

Examples of org.apache.tapestry.annotations.Component.type()

            if (InternalUtils.isBlank(id))
                id = InternalUtils.stripMemberPrefix(fieldName);

            String type = transformation.getFieldType(fieldName);

            MutableEmbeddedComponentModel embedded = model.addEmbeddedComponent(id, annotation
                    .type(), type);

            addParameters(embedded, annotation.parameters());

            transformation.makeReadOnly(fieldName);
View Full Code Here

Examples of org.apache.tapestry5.annotations.Component.type()

        String type = field.getTypeName();

        Location location = new StringLocation(String.format("%s.%s", transformation.getClassName(), fieldName), 0);

        MutableEmbeddedComponentModel embedded = model.addEmbeddedComponent(id, annotation.type(), type, annotation
                .inheritInformalParameters(), location);

        addParameters(embedded, annotation.parameters());

        updateModelWithPublishedParameters(embedded, annotation);
View Full Code Here

Examples of org.apache.tuscany.sca.binding.corba.meta.CorbaUnionElement.type()

        for (int i = 0; i < forClass.getDeclaredFields().length; i++) {
            CorbaUnionElement note = forClass.getDeclaredFields()[i].getAnnotation(CorbaUnionElement.class);
            if (note != null) {
                int fieldMod = forClass.getDeclaredFields()[i].getModifiers();
                if (Modifier.isPrivate(fieldMod) && !Modifier.isFinal(fieldMod) && !Modifier.isStatic(fieldMod)) {
                    if (note.type().equals(CorbaUnionElementType.discriminator)) {
                        if (discriminatorPresent) {
                            throw new RequestConfigurationException(
                                                                    "More than one discriminators declared on: " + forClass);
                        }
                        discriminatorPresent = true;
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.