Examples of asObject()


Examples of org.apache.shale.util.ConverterHelper.asObject()

        String asString = helper.asString(facesContext, String[].class, partialTriggers);
       
        assertNotNull(asString);
        assertEquals("one two three", asString);
       
        String[] asObject = (String[]) helper.asObject(facesContext, String[].class, asString);
        assertNotNull(asObject);
       
        assertEquals(partialTriggers .length, asObject.length);
        for (int i = 0; i < partialTriggers .length; i++) {
            assertEquals("item " + i + ":", partialTriggers[i], asObject[i]);
View Full Code Here

Examples of org.apache.shale.util.ConverterHelper.asObject()

          }
      }
     
      if (obj instanceof String) {  
          // String to object
          return converterHelper.asObject(context, cl, (String) obj)
      } else {
          //Object to String
          String source = converterHelper.asString(context, obj.getClass(), obj);
          // String to Object
          return converterHelper.asObject(context, cl, source);
View Full Code Here

Examples of org.apache.shale.util.ConverterHelper.asObject()

          return converterHelper.asObject(context, cl, (String) obj)
      } else {
          //Object to String
          String source = converterHelper.asString(context, obj.getClass(), obj);
          // String to Object
          return converterHelper.asObject(context, cl, source);
      }

   }

View Full Code Here

Examples of org.chromium.sdk.JsValue.asObject()

      if (uiValue == null) {
        return createErrorOptional(new Message(Messages.LogicImpl_VALUE_IS_NOT_AVAILABLE,
                MessagePriority.BLOCKING_PROBLEM));
      }
      JsValue jsValue = uiValue.getJsValue();
      JsObject jsObject = jsValue.asObject();
      if (jsObject == null) {
        return createErrorOptional(
            new Message(Messages.LogicImpl_NOT_FOR_PRIMITIVE, MessagePriority.BLOCKING_PROBLEM));
      }
View Full Code Here

Examples of org.chromium.sdk.JsValue.asObject()

    }
    JsValue jsValue = uiValue.getJsValue();
    if (jsValue == null) {
      return null;
    }
    JsObject jsObject = jsValue.asObject();
    if (jsObject == null) {
      return null;
    }
    return jsObject.asFunction();
  }
View Full Code Here

Examples of org.chromium.sdk.JsValue.asObject()

      if (uiValue == null) {
        return createErrorOptional(new Message(Messages.LogicImpl_VALUE_IS_NOT_AVAILABLE,
                MessagePriority.BLOCKING_PROBLEM));
      }
      JsValue jsValue = uiValue.getJsValue();
      JsObject jsObject = jsValue.asObject();
      if (jsObject == null) {
        return createErrorOptional(
            new Message(Messages.LogicImpl_NOT_FOR_PRIMITIVE, MessagePriority.BLOCKING_PROBLEM));
      }
View Full Code Here

Examples of org.jboss.bpm.console.client.util.JSONWalk.JSONWrapper.asObject()

        JSONArray array = (JSONArray) root;
       
        for (int i = 0; i < array.size(); i++) {
            JSONWalk walk = JSONWalk.on(array.get(i));
            JSONWrapper wrapper = walk.next("activeNode");
            JSONObject activeNode = wrapper.asObject();
       
            int x = JSONWalk.on(activeNode).next("x").asInt();
            int y = JSONWalk.on(activeNode).next("y").asInt();
       
            int width = JSONWalk.on(activeNode).next("width").asInt();
View Full Code Here

Examples of org.jboss.bpm.console.client.util.JSONWalk.JSONWrapper.asObject()

        JSONArray array = (JSONArray) root;
       
        for (int i = 0; i < array.size(); i++) {
            JSONWalk walk = JSONWalk.on(array.get(i));
            JSONWrapper wrapper = walk.next("activeNode");
            JSONObject activeNode = wrapper.asObject();
       
            int x = JSONWalk.on(activeNode).next("x").asInt();
            int y = JSONWalk.on(activeNode).next("y").asInt();
       
            int width = JSONWalk.on(activeNode).next("width").asInt();
View Full Code Here

Examples of org.jboss.bpm.console.client.util.JSONWalk.JSONWrapper.asObject()

      JSONArray array = (JSONArray) root;
      List<ActiveNodeInfo> activeNodeInfos = new ArrayList<ActiveNodeInfo>();
      for (int i = 0; i < array.size(); i++) {
        JSONWalk walk = JSONWalk.on(array.get(i));
        JSONWrapper wrapper = walk.next("activeNode");
        JSONObject activeNode = wrapper.asObject();
   
        int x = JSONWalk.on(activeNode).next("x").asInt();
        int y = JSONWalk.on(activeNode).next("y").asInt();
   
        int width = JSONWalk.on(activeNode).next("width").asInt();
View Full Code Here

Examples of org.jboss.dmr.client.ModelNode.asObject()

    }

    @Override
    public void initialLoad() {
        ModelNode address = Baseadress.get();
        if (address.asObject().get("profile").isDefined()) {
            // Temporary disabled in domains mode until it is available properly there.
            Feedback.alert(Console.CONSTANTS.subsys_osgi(), "OSGi Subsystem runtime information is not available on the profile level.");
            return;
        }
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.