Examples of ObjectValue


Examples of com.caucho.quercus.env.ObjectValue

  public static ReflectionObject __construct(Env env, Value val)
  {
    if (! val.isObject())
      throw new ReflectionException("parameter must be an object");
   
    ObjectValue obj = (ObjectValue) val.toObject(env);
   
    return new ReflectionObject(obj.getQuercusClass());
  }
View Full Code Here

Examples of com.dubture.doctrine.annotation.model.ObjectValue

        assertEquals("post", annotation.getArgumentValue("name").getValue());
        assertEquals(-10.0, annotation.getArgumentValue("double").getValue());
        assertEquals(100.0, annotation.getArgumentValue("int").getValue());

        assertEquals(ArgumentValueType.OBJECT, annotation.getArgumentValue("defaults").getType());
        ObjectValue objectValue = (ObjectValue) annotation.getArgumentValue("defaults");

        assertEquals("\\s+", objectValue.getArgumentValue("_format").getValue());

        assertEquals(ArgumentValueType.ARRAY, annotation.getArgumentValue("requirements").getType());
        ArrayValue arrayValue = (ArrayValue) annotation.getArgumentValue("requirements");

        assertEquals("one", arrayValue.getArgumentValue(0).getValue());
View Full Code Here

Examples of com.opera.core.systems.scope.protos.Esdbg6Protos.ObjectValue

    EvalResult result = parseEvalData(response);

    Object parsed = parseEvalReply(result);
    if (parsed instanceof ObjectValue) {
      ObjectValue data = (ObjectValue) parsed;
      return new ScriptResult(data.getObjectID(), data.getClassName());
    } else {
      return parsed;
    }
  }
View Full Code Here

Examples of com.opera.core.systems.scope.protos.EsdbgProtos.ObjectValue

    EvalResult result = parseEvalData(response);

    Object parsed = parseEvalReply(result);
    if (parsed instanceof ObjectValue) {
      ObjectValue data = (ObjectValue) parsed;
      return new ScriptResult(data.getObjectID(), data.getName());
    } else {
      return parsed;
    }
  }
View Full Code Here

Examples of macromedia.asc.semantics.ObjectValue

            {
              vs = vb.ref.getSlot(cx, Tokens.GET_TOKEN);
            }
                       
                        Value v = (vs != null ? vs.getValue() : null);
                        ObjectValue ov = ((v instanceof ObjectValue) ? (ObjectValue)(v) : null);
                        // if constant evaluator has determined this has a value, use it.
                        defaultValue = (ov != null) ? ov.getValue() : "unknown";
                    }
                    else
                    {
                        Slot vs = vb.ref.getSlot(cx, Tokens.GET_TOKEN);
                        Value v = (vs != null ? vs.getValue() : null);
                        ObjectValue ov = ((v instanceof ObjectValue) ? (ObjectValue)(v) : null);
                        // if constant evaluator has determined this has a value, use it.
                        defaultValue = (ov != null) ? ov.getValue() : "unknown";
                    }
                }
            }
View Full Code Here

Examples of net.sf.saxon.value.ObjectValue

         } else if (source instanceof BigDecimal) {
             result = new DecimalValue((BigDecimal)source);
         } else if (source instanceof String) {
             result = new StringValue(((String)source));
         } else {
             result = new ObjectValue(source);
         }

        return result;
    }
View Full Code Here

Examples of net.sf.saxon.value.ObjectValue

    public Value transform(Object source, TransformationContext context) {
        // WORKAROUND for ClassCastException in ObjectValue.toJavaObject(float)
        if (source instanceof Float) {
            return new FloatValue(((Float)source).floatValue());
        }
        return new ObjectValue(source);
    }
View Full Code Here

Examples of org.apache.slide.projector.value.ObjectValue

            for ( int i = 0; i < ((String[])value).length; i++ ) {
                elements[i] = new StringValue(((String [])value)[i]);                               
            }
            return new ArrayValue(elements);
        } else {
          return new ObjectValue(value);
        }
    }
View Full Code Here

Examples of org.camunda.bpm.engine.variable.value.ObjectValue

  @Test
  public void testGetObjectVariablesSerialized() {
    // given
    String variableKey = "aVariableId";

    ObjectValue variableValue =
        Variables
          .serializedObjectValue("a serialized value")
          .serializationDataFormat("application/json")
          .objectTypeName(ArrayList.class.getName())
          .create();
View Full Code Here

Examples of org.camunda.bpm.engine.variable.value.ObjectValue

  public void testGetSingleObjectVariable() {
    // given
    String variableKey = "aVariableId";

    List<String> payload = Arrays.asList("a", "b");
    ObjectValue variableValue =
        MockObjectValue
            .fromObjectValue(Variables
                .objectValue(payload)
                .serializationDataFormat("application/json")
                .create())
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.