Examples of Value


Examples of org.jruby.pg.internal.Value

      RubySymbol format_s = context.runtime.newSymbol("format");
      for (int i = 0; i < params.getLength(); i++) {
        IRubyObject param = params.entry(i);
        Format valueFormat = Format.Text;
        if (param.isNil()) {
          values[i] = new Value(null, valueFormat);
        } else if (param instanceof RubyHash) {
          RubyHash hash = (RubyHash) params.get(i);
          IRubyObject value = hash.op_aref(context, value_s);
          IRubyObject type = hash.op_aref(context, type_s);
          IRubyObject format = hash.op_aref(context, format_s);
          if (!type.isNil())
            oids[i] = (int) ((RubyFixnum) type).getLongValue();
          if (!format.isNil())
            valueFormat = ((RubyFixnum) format).getLongValue() == 1 ? Format.Binary : Format.Text;
          if (value.isNil())
            values[i] = new Value(null, valueFormat);
          else
            values[i] = new Value(((RubyString) value).getBytes(), valueFormat);
        } else {
          RubyString rubyString;
          if (param instanceof RubyString)
            rubyString = (RubyString) param;
          else
            rubyString = (RubyString) ((RubyObject) param).to_s();
          values[i] = new Value(rubyString.getBytes(), valueFormat);
        }
      }
    }
View Full Code Here

Examples of org.kapott.hbci.structures.Value

               
                String st;
                if ((st=upd.getProperty(header+".KLimit.limittype"))!=null) {
                    Limit limit=new Limit();
                    limit.type=st.charAt(0);
                    limit.value=new Value(upd.getProperty(header+".KLimit.BTG.value"),
                                          upd.getProperty(header+".KLimit.BTG.curr"));
                    if ((st=upd.getProperty(header+".KLimit.limitdays"))!=null)
                        limit.days=Integer.parseInt(st);
                }
               
View Full Code Here

Examples of org.lealone.value.Value

        AggregateData data = (AggregateData) group.get(this);
        if (data == null) {
            data = new AggregateData(type, dataType);
            group.put(this, data);
        }
        Value v = on == null ? null : on.getValue(session);
        if (type == GROUP_CONCAT) {
            if (v != ValueNull.INSTANCE) {
                v = v.convertTo(Value.STRING);
                if (orderList != null) {
                    int size = orderList.size();
                    Value[] array = new Value[1 + size];
                    array[0] = v;
                    for (int i = 0; i < size; i++) {
View Full Code Here

Examples of org.mc4j.ems.store.Value

            }
            // This old way stored attribute values if they were under a certain size
//            if (com.vladium.utils.ObjectProfiler.sizeof(newValue) < 200)

            if (newValue instanceof Number)
                valueHistory.addValue(new Value(newValue, System.currentTimeMillis()));

            currentValue = newValue;
        }
    }
View Full Code Here

Examples of org.milyn.javabean.Value

      @Override
      public void configure() throws Exception
      {
                from("direct:a")
                .process(new SmooksProcessor(new Smooks().setExports(new Exports(JavaResult.class)), context)
                .addVisitor(new Value("customer", "/order/header/customer", String.class)));
      }
     
    });
    enableJMX();
    context.start();
View Full Code Here

Examples of org.msgpack.type.Value

  BufferPacker packer = msgpack.createBufferPacker();
  tmpl.write(packer, v);
  byte[] bytes = packer.toByteArray();
  BufferUnpacker u = msgpack.createBufferUnpacker();
  u.wrap(bytes);
  Value value = u.readValue();
  Converter unpacker = new Converter(value);
  PrimitiveTypeFieldsClass ret = tmpl.read(unpacker, null);
  assertEquals(v, ret);
    }
View Full Code Here

Examples of org.msgpack.value.Value

            return true;
        }
        if (!(o instanceof Value)) {
            return false;
        }
        Value v = (Value) o;
        if (!v.isBinary()) {
            return false;
        }
        BinaryValue bv = v.asBinary();
        return bv.toByteBuffer().equals(byteBuffer);
    }
View Full Code Here

Examples of org.neo4j.cypherdsl.query.Value

            public Value arg( com.mysema.query.types.Expression expression )
            {
                if ( expression instanceof Constant )
                {
                    return new Value( literal( ((Constant) expression).getConstant() ) );
                }
                else if ( expression instanceof ParamExpression )
                {
                    return new Value( param( ((ParamExpression) expression).getName() ) );
                }
                else if ( expression instanceof Path )
                {
                    Path path = (Path) expression;
                    return new Value( identifier( path.getRoot() ).string( path.getMetadata().getElement()
                            .toString() ) );
                }
                else
                {
                    throw new IllegalArgumentException( "Unknown argument type:" + expression );
View Full Code Here

Examples of org.netbeans.server.uihandler.LogsManager.Value

        @SuppressWarnings("unchecked")
        final void addValues(List<Value> sum) {
            assert sum.size() == getValues().size();

            for (int i = 0; i < sum.size(); i++) {
                Value ses = getValues().get(i);
                Value user = sum.get(i);
                assert ses.statistics == user.statistics;

                user.value = user.statistics.join(user.value, ses.value);
            }
View Full Code Here

Examples of org.newdawn.slick.font.effects.ConfigurableEffect.Value

          // Set an effect value on the last added effect.
          name = name.substring(7);
          ConfigurableEffect effect = (ConfigurableEffect)effects.get(effects.size() - 1);
          List values = effect.getValues();
          for (Iterator iter = values.iterator(); iter.hasNext();) {
            Value effectValue = (Value)iter.next();
            if (effectValue.getName().equals(name)) {
              effectValue.setString(value);
              break;
            }
          }
          effect.setValues(values);
        }
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.