Examples of asString()


Examples of com.lunivore.gameoflife.view.string.StringRenderer.asString()

    public void shouldAllowUsersToToggleCells() {
        StringRenderer renderer = new StringRenderer();
        Game game = new Game(6, 4);
        game.setObserver(renderer);
        game.toggleCellAt(2, 1);
        assertThat(renderer.asString(), Matchers.equalTo(
        "......" + NL +
        "..X..." + NL +
        "......" + NL +
        "......"));
        game.toggleCellAt(2, 2);
View Full Code Here

Examples of com.marklogic.xcc.ResultSequence.asString()

  public void testInit() throws Exception {
    executeLibraryModule(modulePath, moduleNamespace, "init");
    // Verify update by running a query
    String q = "fn:doc('/config/tarantula.xml')" + "//tara:switch/text()";
    ResultSequence rs = this.executeQuery(q, null, null);
    String qStr = rs.asString();
    assertEquals("on", qStr);
 
  }
 
  public void testTurnOff() throws Exception {
View Full Code Here

Examples of com.marklogic.xcc.types.XdmItem.asString()

                ResultItem rsItem = rs.next();
                XdmItem item = rsItem.getItem();

                // FIXME: This needs work...
                if (item instanceof XdmDocument || item instanceof XdmElement) {
                    XdmNode xccXML = parseString(item.asString());
                    result.write(xccXML);
                } else {
                    String text = item.asString();
                    TreeWriter treeWriter = new TreeWriter(runtime);
                    treeWriter.startDocument(step.getNode().getBaseURI());
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSD.asString()

//          data.getMap(data);
         
          if ((osd = map.get("login")) !=null)
          {
            boolean loginSuccess = osd.asBoolean();
            boolean redirect = (osd.asString().equals("indeterminate"));

            if (redirect)
            {
              // Login redirected
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDString.asString()

    tempSD = map.get("scale");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDString);
    Assert.assertTrue(tempSD.getType() == OSDType.String);
    tempStr = (OSDString)tempSD;
    Assert.assertEquals("one minute", tempStr.asString());

    tempSD = map.get("simulator statistics");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDMap);
    Assert.assertTrue(tempSD.getType() == OSDType.Map);
View Full Code Here

Examples of com.orange.wink.ast.AstNode.asString()

        child = new GetProp(left);
      } else {
        throw new WinkUnmanagedSyntaxException("Unknow GetProp Syntax, unexpected: " + Ast.tokenName(lt) + "-" + Ast.tokenName(rt) + " " + Ast.getPositionInfo(n));
      }
      if (rt == Token.STRING || rt == Token.NAME || rt == Token.GETVAR || rt == Token.NUMBER) {
        prop = right.asString();
      } else if (rt == Token.SUB || rt == Token.ADD) {
        final List<AstNode> rightChilds = right.getChilds();
        final String sign = (rt == Token.SUB) ? "-" : "+";
        try {
          prop = rightChilds.get(0).asString() + sign + rightChilds.get(1).asString();
View Full Code Here

Examples of com.sissi.context.JID.asString()

    entity.put(Dictionary.FIELD_DELAY, this.format.format(new Date()));
    entity.put(Dictionary.FIELD_CLASS, element.getClass().getSimpleName());
    JID to = this.jidBuilder.build(element.getTo());
    JID from = this.jidBuilder.build(element.getFrom());
    entity.put(Dictionary.FIELD_TO, this.bare ? to.asStringWithBare() : to.asString());
    entity.put(Dictionary.FIELD_FROM, this.bare ? from.asStringWithBare() : from.asString());
    return entity;
  }

  /*
   * Class比较
 
View Full Code Here

Examples of com.sun.jdo.api.persistence.enhancer.classfile.ConstClass.asString()

    /**
     * Return the class name in VM form
     */
    public String className() {
        ConstClass cname = theClass.className();
        return (cname == null) ? null : cname.asString();
    }

    /**
     * Return the class name in user ('.' delimited) form
     */
 
View Full Code Here

Examples of com.tll.common.model.Model.asString()

    }

    @Override
    protected void doEditRow(int rowIndex) {
      final Model rowData = getRowData(rowIndex);
      final String cid = rowData.asString("customer.id");
      final ModelKey ck = new ModelKey(SmbizEntityType.CUSTOMER, cid, null);
      ViewManager.get().dispatch(
          new ShowViewRequest(new EditViewInitializer(AccountEditView.klas, ck)));
    }
View Full Code Here

Examples of com.volantis.synergetics.path.Path.asString()

            if (path.getNumberOfFragments() > 1) {
                path = new Path(path, 0, path.getNumberOfFragments()-1);
                // resolve the url to request url after url is truncated.
                path = path.resolve(url.getPath());
                result = getRequestURL(true);
                result.setPath(path.asString());
            }
            // get the client accessible URL
            result = getVolantisBean().getClientAccessibleURL(result);  
        }
        return result;
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.