Examples of type()


Examples of es.ipsa.atril.doc.user.AttributeMultiValue.type()

        if (oVal instanceof String) {
          oAttr = oDoc.attribute(sKey);
          oAttr.set((String) oVal);
        } else if (oVal instanceof Date) {
          oAttr = oDoc.attribute(sKey);
          if (oAttr.type().getDataType().equals(DataType.DATE))
            oAttr.set((Date) (oVal));
          else if (oAttr.type().getDataType().equals(DataType.DATE_TIME))
            oAttr.set((long) DateConversions.getIPSATimeFromDate((Date) (oVal)));
          else
            throw new ClassCastException("Cannot bind Java "+oVal.getClass().getName()+" into "+sKey+" "+oAttr.type().getDataType().name());
View Full Code Here

Examples of es.ipsa.atril.doc.user.Document.type()

    IllegalStateException, DmsException  {
    Log.out.debug("Begin "+getClass().getName()+".delete("+id()+")");
    Document p = oDms.getDocument(id());
    for (Document c : p.children()) {
      Document d = oDms.getDocument(c.id());
      Class t = Class.forName("com.zesped.model."+d.type().name());
      BaseModelObject o = (BaseModelObject) t.newInstance();
      o.setDocument(d);
      o.delete(oSes,oDms);
    }
    if (attributes()!=null) {
View Full Code Here

Examples of etch.bindings.java.msg.Message.type()

//    System.out.println("Sleeping for 5 seconds");
    Thread.sleep( 5000 );    
//    System.out.println("Out of sleep");
    assertSame( What.TRANSPORT_MESSAGE, transport.what );
    Message msg = transport.msg;
    assertEquals( "_Etch_KeepAliveReq", msg.type().getName() );
    assertEquals( 4, msg.get( new Field( "count" ) ) );
    assertEquals( 3, msg.get( new Field( "delay" ) ) );
  }
 
  /** @throws Exception */
 
View Full Code Here

Examples of etch.bindings.java.msg.StructValue.type()

    Type type = getCustomStructType( clss );
   
    if (type == null && clss == StructValue.class)
    {
      StructValue struct = (StructValue) value;
      type = struct.type();
    }
   
    if (type == null)
    {
      if (Throwable.class.isAssignableFrom( clss ))
View Full Code Here

Examples of etch.compiler.ast.Constant.type()

      {
        Constant c = (Constant) named;
       
        // it's a constant, do the types match?
       
        Named<?> ct = c.type().getNamed( msg.parent() );
        Named<?> paramType = param.type().getNamed( msg.parent() );
        if (ct == paramType)
          return;
       
        throw typeMismatch( param, arg, argNo );
View Full Code Here

Examples of etch.compiler.ast.Message.type()

        "Authorize method name %s is not a method at %d",
        method.image, lineno() ) );
   
    Message authMsg = (Message) named;
   
    if (authMsg.type().type().kind != EtchGrammarConstants.BOOLEAN)
      throw new ParseException( String.format(
        "Authorize method %s result type is not boolean at %d",
        method.image, lineno() ) );
   
    List<Parameter> authParams = authMsg.getParameters();
View Full Code Here

Examples of etch.compiler.ast.Parameter.type()

    int n = argList.size();
    for (int i = 0; i < n; i++)
    {
      Parameter param = authParams.get( i );
      AuthArg aarg = argList.get( i );
      aarg.setType( param.type() );
      Token arg = aarg.value();
     
//      System.out.printf( "auth method %s param %s = %s\n",
//        method, param.name(), arg );
     
View Full Code Here

Examples of etch.compiler.ast.TypeRef.type()

      Parameter param = (Parameter) named;
      TypeRef type = param.type();

      if (type.isBuiltin())
        return String.format( "Validator_%s.get( %d )",
          type.type(), type.dim() );

      Named<?> n = type.getNamed( type.intf() );

      if (n.isBuiltin())
      {
View Full Code Here

Examples of gnu.hylafax.HylaFAXClient.type()

        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
        monitor.work(1);
       
        monitor.setText(i18n.tr("Setting mode"));
        client.mode(HylaFAXClient.MODE_STREAM);
        client.type(HylaFAXClient.TYPE_IMAGE);
        monitor.work(1);

        monitor.setText(i18n.tr("Downloading file"));
        TransferMonitor transferMonitor = new TransferMonitor(monitor, 10, size);
        OutputStream out = new BufferedOutputStream(new FileOutputStream(file));
View Full Code Here

Examples of info.archinnov.achilles.internal.metadata.holder.PropertyMeta.type()

        log.trace("Get value from field {} on real object", propertyMeta.getPropertyName());
        Object rawValue = invoker.getValueFromField(target, propertyMeta.getField());

        // Build proxy when necessary
        switch (propertyMeta.type()) {
            case COUNTER:
                if (rawValue == null) {
                    final Counter counter = InternalCounterBuilder.initialValue(null);
                    propertyMeta.forValues().setValueToField(target, counter);
                }
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.