Examples of stringValue()


Examples of ptolemy.data.expr.StringParameter.stringValue()

        // See if we are redirecting the output.
        StringParameter output = (StringParameter) _generatorAttribute
                .getAttribute("output");

        if ((output != null) && (output.getToken() != null)) {
            String fileName = output.stringValue();

            if (!fileName.equals("")) {
                File outputFile = new File(fileName);
                OutputStream outputStream = new FileOutputStream(outputFile);
                System.setOut(new PrintStream(outputStream));
View Full Code Here

Examples of se.llbit.json.JsonValue.stringValue()

    case SKYBOX:
    {
      JsonArray array = sky.get("skybox").array();
      for (int i = 0; i < 6; ++i) {
        JsonValue value = array.get(i);
        skyboxFileName[i] = value.stringValue("");
      }
      break;
    }
    default:
      break;
View Full Code Here

Examples of weka.core.Instance.stringValue()

        Instance current = insts.instance(i);
        Instance next = insts.instance(i + 1);
        if (!Utils.isMissingValue(current.value(primaryIndex))
            && !Utils.isMissingValue(next.value(primaryIndex))) {
          String key = current.stringValue(primaryIndex);
          String value = next.stringValue(primaryIndex);
          if (m_primaryPeriodicSequence.get(key) == null) {
            m_primaryPeriodicSequence.put(key, value);
          } else {
            // check to see if this value is consistent with
            // what we've seen previously
View Full Code Here

Examples of xbird.xquery.dm.dtm.IDocumentTable.stringValue()

            return model.createNode(store.getNodeKindAt(prevSib), prevSib);
        }

        public String stringValue() {
            final IDocumentTable store = documentTable();
            return store.stringValue(_id);
        }

        @Override
        public DTMNodeBase clone() {
            if(_cloned++ == 0) {
View Full Code Here

Examples of xbird.xquery.dm.value.AtomicValue.stringValue()

        int paramlen = params.size();
        assert (paramlen == 1);
        XQExpression locExpr = params.get(0);
        if(locExpr instanceof LiteralExpr) {
            AtomicValue atomv = ((LiteralExpr) locExpr).getValue();
            String locStr = atomv.stringValue();
            assert (locStr != null);
            Reader qr = readQuery(locStr, context);
            XQExpression resolved = resolveExpression(qr, context);
            return resolved;
        }
View Full Code Here

Examples of xbird.xquery.dm.value.AtomicValue.stringValue()

            final QNameValue qname = ((AtomicValue) it).castAs(QNameType.QNAME, dynEnv);
            namev = qname.getValue();
        } else if(TypeUtil.subtypeOf(t, StringType.STRING) || t == UntypedAtomicType.UNTYPED_ATOMIC) {
            final StaticContext sc = dynEnv.getStaticContext();
            try {
                final CharSequence namecs = it.stringValue();
                final String namestr = (namecs == null) ? null : namecs.toString();
                namev = QNameUtil.parse(namestr, sc.getStaticalyKnownNamespaces(), sc.getDefaultElementNamespace());
            } catch (Exception e) {
                throw new DynamicError("err:XQDY0074", e);
            }
View Full Code Here

Examples of xbird.xquery.dm.value.Item.stringValue()

        for(int i = 0; i < _items.size(); i++) {
            if(i != 0) {
                buf.append(' ');
            }
            Item it = _items.get(i);
            buf.append(it.stringValue());
        }
        return buf.toString(); // TODO cache
    }

    public boolean next(IFocus focus) throws XQueryException {
View Full Code Here

Examples of xbird.xquery.dm.value.Item.stringValue()

        Item firstItem = argv.getItem(0);
        if(firstItem.isEmpty()) {
            return ValueSequence.EMPTY_SEQUENCE;
        }
        assert (firstItem instanceof XString);
        String viewloc = firstItem.stringValue();
        Reader reader = readQuery(viewloc, dynEnv.getStaticContext());
        Sequence res = Eval.evaluateQuery(reader, dynEnv);
        return res;
    }
View Full Code Here

Examples of xbird.xquery.dm.value.Item.stringValue()

    }

    public Sequence eval(Sequence<? extends Item> contextSeq, ValueSequence argv, DynamicContext dynEnv)
            throws XQueryException {
        Item firstItem = argv.getItem(0);
        String str = firstItem.stringValue();
        int hashvalue = str.hashCode();
        return new XInteger(hashvalue);
    }

}
View Full Code Here

Examples of xbird.xquery.dm.value.Item.stringValue()

    public BooleanValue eval(Sequence<? extends Item> contextSeq, ValueSequence argv, DynamicContext dynEnv)
            throws XQueryException {
        final int arglen = argv.size();
        Item firstItem = argv.getItem(0);
        // If $input is the empty sequence, it is interpreted as the zero-length string.
        String input = firstItem.isEmpty() ? "" : firstItem.stringValue();
        Item secondItem = argv.getItem(1);
        String pattern = secondItem.stringValue();
        int flags = Pattern.UNIX_LINES;
        if(arglen == 3) {
            Item thirdItem = argv.getItem(2);
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.