Examples of text()


Examples of org.jsoup.select.Elements.text()

  public void transformString(String channelString) {
    Document doc = Jsoup.parse(channelString);
    Elements tmp;
    tmp = doc.select("alias");
    if (tmp != null) {
      this.alias = (tmp.text());
    }
    tmp = doc.select("thumbImageUrl");
    if (tmp != null) {
      this.thumbImageUrl = (new Text(tmp.text()));
    }
View Full Code Here

Examples of org.modeshape.common.i18n.I18n.text()

                        // Still didn't match, so this is a constraint violation of the existing property ...
                        String pName = defn.getName();
                        String typeName = defn.getDeclaringNodeType().getName();
                        String loc = readableLocation(node);
                        I18n msg = JcrI18n.propertyNoLongerSatisfiesConstraints;
                        throw new ConstraintViolationException(msg.text(pName, loc, defn.getName(), typeName));
                    }
                }
            }

            // ---------------------
View Full Code Here

Examples of org.netbeans.api.lexer.Token.text()

        TokenHierarchy th = TokenHierarchy.get(document);
        TokenSequence ts = th.tokenSequence();
        while (ts.moveNext()) {
            Token nextToken = ts.token();
            if (nextToken.id() == XMLTokenId.TAG) {
                String tagName = nextToken.text().toString();
                if (tagName.startsWith("<")) {
                    return tagName.substring(1, tagName.length());
                }
            }
        }
View Full Code Here

Examples of org.openhab.core.scriptengine.action.ActionDoc.text()

  private String getDocumentation(Method m) {
    ActionDoc actionDoc = m.getAnnotation(ActionDoc.class);
    if(actionDoc!=null) {
      StringBuilder sb = new StringBuilder();
      sb.append("<p>&nbsp;&nbsp;&nbsp;" + actionDoc.text() + "</p>");
      if(m.getParameterTypes().length > 0) {
        sb.append("<p><b>Parameters:</b><br>");
        List<String> params = new ArrayList<String>();
        for(int i = 0; i< m.getParameterTypes().length; i++) {
          ParamDoc paramDoc = getParamDoc(m, i);
View Full Code Here

Examples of org.openhab.core.scriptengine.action.ParamDoc.text()

        sb.append("<p><b>Parameters:</b><br>");
        List<String> params = new ArrayList<String>();
        for(int i = 0; i< m.getParameterTypes().length; i++) {
          ParamDoc paramDoc = getParamDoc(m, i);
          String paramName = paramDoc!=null ? paramDoc.name() : "p" + i;
          params.add("&nbsp;&nbsp;&nbsp;" + paramName + (StringUtils.isEmpty(paramDoc.text()) ? "" : ": " + paramDoc.text()));
        }
        sb.append(StringUtils.join(params, "<br/>"));
        sb.append("</p>");
      }
      if(!StringUtils.isEmpty(actionDoc.returns())) {
View Full Code Here

Examples of org.osm.jsoup.nodes.Element.text()

      /**
       * 获取视频时长
       */
      Element timeEt = picEt.select("span.review>cite").first();
      time = timeEt.text();
    } else {
      pic = doc.getElementsByClass("s_pic").first().text();
    }

    /**
 
View Full Code Here

Examples of org.qi4j.library.rest.common.link.Link.text()

            if( constraints.isValid( query, objectSelection, module ) )
            {
                ValueBuilder<Link> linkBuilder = module.newValueBuilder( Link.class );
                Link prototype = linkBuilder.prototype();
                prototype.classes().set( "query" );
                prototype.text().set( humanReadable( query.getName() ) );
                prototype.href().set( query.getName().toLowerCase() );
                prototype.rel().set( query.getName().toLowerCase() );
                prototype.id().set( query.getName().toLowerCase() );
                queriesProperty.add( linkBuilder.newInstance() );
            }
View Full Code Here

Examples of org.renjin.graphics.GraphicsDevice.text()

        n = main.length();
        offset = 0.5 * (n - 1) + vpos;
        for (i = 0; i < n; i++) {
          String text = ((Vector)main).getElementAsString(i);
          if(!StringVector.isNA(text)) {
            dd.text(new Point(hpos, offset - i), where, text,
                new Point(adj, adjy), 0.0);
          }
        }
      }
    }
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.text()

        emptyElement.assertText("22");

        /*Check TreeTable with defined 'nodePath' and 'nodeData' attributes*/
        element("formID:singleNodePathSelectionTreeTableID:3:categoryID").click();
        ElementInspector selectionNodePath = element("selectionNodePathID");
        String indexBeforeSubmitNodePathTreeTable = selectionNodePath.text();

        element("formID:singleNodeDataSelectionTreeTableID:1:categoryID").keyPress(KeyEvent.VK_RIGHT);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        treeTable.keyPress(KeyEvent.VK_DOWN);
        ElementInspector selectionNodeData = element("selectionNodeDataID");
View Full Code Here

Examples of org.seleniuminspector.openfaces.PopupLayerInspector.text()

        element("formID:popupCloser").click();
        popupLayer.assertVisible(false);
        element("formID:refresher").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        element("formID:buttonID").click();
        String newValue = popupLayer.text();
        popupLayer.assertVisible(true);
        element("formID:popupCloser").click();
        popupLayer.assertVisible(false);
        popupLayer.assertElementExists();
        assertFalse(newValue.equals(oldValue));
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.