Examples of ValueCollection


Examples of edu.isi.karma.rep.cleaning.ValueCollection

        c.add(new InfoUpdate("No Result Submitted"));
        return c;
      }


      ValueCollection rvco = getValueCollectionFromRamblerTranformationOutput(rtf);
     
      findNewHNodeIdAndHNodeAsDerived(workspace, selectedPath);
      // create edit multiple cells command
      createAndExecuteMultiCellCmd(workspace, selectedPath, rvco);
    } catch (Exception e) {
View Full Code Here

Examples of edu.isi.karma.rep.cleaning.ValueCollection

  private ValueCollection getValueCollectionFromRamblerTranformationOutput(
      RamblerTransformationOutput rtf) {
    Iterator<String> iter = rtf.getTransformations().keySet().iterator();
    Vector<ValueCollection> vvc = new Vector<ValueCollection>();
    String tpid = iter.next();
    ValueCollection rvco = rtf.getTransformedValues(tpid);
    vvc.add(rvco);
    return rvco;
  }
View Full Code Here

Examples of edu.isi.karma.rep.cleaning.ValueCollection

    // id:{org: tar: orgdis: tardis: }
    HashMap<String, HashMap<String, String>> resdata = new HashMap<String, HashMap<String, String>>();
    HashSet<String> keys = new HashSet<String>();
    while (iter.hasNext()) {
      String tpid = iter.next();
      ValueCollection rvco = rtf.getTransformedValues_debug(tpid);
      if (rvco == null)
        continue;
      // constructing displaying data
      HashMap<String, String[]> xyzHashMap = new HashMap<String, String[]>();
      for (String key : rvco.getNodeIDs()) {
        HashMap<String, String> dict = new HashMap<String, String>();
        // add to the example selection
        boolean isExp = false;
        String org = vc.getValue(key);
        String classLabel = rvco.getClass(key);
        String pretar = rvco.getValue(key);
        String dummyValue = pretar;
        if(pretar.indexOf("_FATAL_ERROR_")!= -1)
        {
          dummyValue = org;
          //dummyValue = "#ERROR";
View Full Code Here

Examples of org.foray.fotree.value.ValueCollection

        /* The remaining case is a comma-delimited list of font-families. */
        final StringTokenizer tokenizer = new StringTokenizer(value, ",");
        if (tokenizer.countTokens() < 1) {
            throw this.unexpectedValue(value, fobj);
        }
        final ValueCollection collection = new ValueCollection();
        while (tokenizer.hasMoreTokens()) {
            final String token = tokenizer.nextToken().trim();
            final PropertyValue parsedToken = this.standardParse(fobj, token,
                    PdFontFamily.VALID_TOKEN_KEYWORDS);
            if (parsedToken.canEvalKeyword()
                    || parsedToken instanceof DtName
                    || parsedToken instanceof DtString) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

Examples of org.foray.fotree.value.ValueCollection

            /* The only keyword is "inherit". */
            return getValueNoInstance(context, fobj);
        }

        if (value() instanceof ValueCollection) {
            final ValueCollection collection = (ValueCollection) value();
            final String[] returnArray = new String[collection.getCount()];
            for (int i = 0; i < collection.getCount(); i++) {
                final PropertyValue pv = collection.getItem(i);
                if (pv.canEvalKeyword()) {
                    final FoValue foValue = this.convertValueToFoValue(pv);
                    returnArray[i] = foValue.toXslFo();
                } else if (pv instanceof DtName) {
                    final DtName dtName = (DtName) pv;
View Full Code Here

Examples of org.foray.fotree.value.ValueCollection

        /* There should be one or more instances of <color>|transparent.
         * If there is only one, it will not be returned above as a valid
         * property value, because we only test for "inherit" there.
         * Therefore we need to tokenize and parse each item, even if there is
         * only one token. */
        final ValueCollection collection = new ValueCollection();
        final StringTokenizer st = new StringTokenizer(value);
        if (st.countTokens() < 1
                || st.countTokens() > PdBorderColor.MAX_TOKENS) {
            throw this.unexpectedValue(value, fobj);
        }
        while (st.hasMoreTokens()) {
            final String token = st.nextToken();
            final PropertyValue parsedToken = this.standardParse(fobj, token,
                    PdBorderColor.VALID_TOKEN_KEYWORDS);
            if (parsedToken.canEvalColor()
                    || parsedToken.canEvalKeyword()) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

Examples of org.foray.fotree.value.ValueCollection

     * issues.
     * @return The value of this property.
     */
    private Color getCollectionValue(final RelativeCompass direction,
            final FObj fobj, final FoContext context) {
        final ValueCollection collection = (ValueCollection) value();
        final int whichElement = PropertyCollection.whichElementForDirectional(
                direction, collection.getCount());
        final PropertyValue insideProperty = collection.getItem(whichElement);
        return insideProperty.evalColor();
    }
View Full Code Here

Examples of org.foray.fotree.value.ValueCollection

         * there is only one token. */
        final StringTokenizer tokenizer = new StringTokenizer(value);
        if (tokenizer.countTokens() < 1) {
            throw this.unexpectedValue(value, fobj);
        }
        final ValueCollection collection = new ValueCollection();
        while (tokenizer.hasMoreTokens()) {
            final String token = tokenizer.nextToken();
            final PropertyValue parsedToken = this.standardParse(fobj, token,
                    PdVoiceFamily.VALID_TOKEN_KEYWORDS);
            if (parsedToken.canEvalKeyword()
                    || parsedToken instanceof DtName) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
View Full Code Here

Examples of org.foray.fotree.value.ValueCollection

                return returnArray;
            }
            }
        }
        if (value() instanceof ValueCollection) {
            final ValueCollection collection = (ValueCollection) value();
            final String[] returnArray = new String[collection.getCount()];
            for (int i = 0; i < returnArray.length; i++) {
                final PropertyValue innerValue = collection.getItem(i);
                if (innerValue.canEvalKeyword()) {
                    final FoValue foValue = this.convertValueToFoValue(
                            innerValue);
                    returnArray[i] = foValue.toXslFo();
                } else if (innerValue instanceof DtName) {
View Full Code Here

Examples of org.foray.fotree.value.ValueCollection

        final StringTokenizer st = new StringTokenizer(value);
        if (st.countTokens() < 1
                || st.countTokens() > PdPadding.MAX_TOKENS) {
            throw this.unexpectedValue(value, fobj);
        }
        final ValueCollection collection = new ValueCollection();
        while (st.hasMoreTokens()) {
            final String token = st.nextToken();
            final PropertyValue parsedToken = this.standardParse(fobj, value,
                    null);
            if (parsedToken.canEvalLength()
                    || parsedToken.canEvalPercentage()) {
                collection.addItem(parsedToken);
            } else {
                throw this.unexpectedValue(token, fobj);
            }
        }
        return collection;
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.