Examples of toStringArray()


Examples of org.apache.uima.cas.impl.ShortArrayFSImpl.toStringArray()

          if (arrayFS != null)
            vals = arrayFS.toStringArray();
        } else if (CAS.TYPE_NAME_SHORT_ARRAY.equals(rangeTypeName)) {
          ShortArrayFSImpl arrayFS = (ShortArrayFSImpl) aFS.getFeatureValue(feat);
          if (arrayFS != null)
            vals = arrayFS.toStringArray();
        } else if (CAS.TYPE_NAME_LONG_ARRAY.equals(rangeTypeName)) {
          LongArrayFSImpl arrayFS = (LongArrayFSImpl) aFS.getFeatureValue(feat);
          if (arrayFS != null)
            vals = arrayFS.toStringArray();
        }
View Full Code Here

Examples of org.apache.uima.cas.impl.StringArrayFSImpl.toStringArray()

          if (arrayFS != null)
            vals = arrayFS.toArray();
        } else if (CAS.TYPE_NAME_INTEGER_ARRAY.equals(rangeTypeName)) {
          IntArrayFSImpl arrayFS = (IntArrayFSImpl) aFS.getFeatureValue(feat);
          if (arrayFS != null)
            vals = arrayFS.toStringArray();
        } else if (CAS.TYPE_NAME_FLOAT_ARRAY.equals(rangeTypeName)) {
          FloatArrayFSImpl arrayFS = (FloatArrayFSImpl) aFS.getFeatureValue(feat);
          if (arrayFS != null)
            vals = arrayFS.toStringArray();
        } else if (CAS.TYPE_NAME_BOOLEAN_ARRAY.equals(rangeTypeName)) {
View Full Code Here

Examples of org.apache.uima.jcas.cas.StringArray.toStringArray()

    oc.setCodingScheme("METAMAP");
    StringArray tuiArr = (StringArray) annoCandidate
        .getFeatureValue(tuiFeature);
    List<String> tuis = null;
    if (tuiArr != null)
      tuis = Arrays.asList(tuiArr.toStringArray());
    concepts.put(cui, oc);
    return checkMedications && tuis != null ? !Collections.disjoint(
        setMedicationAbrs, tuis) : false;
  }
View Full Code Here

Examples of org.foray.fotree.value.ValueCollection.toStringArray()

     * null otherwise.
     */
    public String[] getValueNames() {
        if (value() instanceof ValueCollection) {
            final ValueCollection vc = (ValueCollection) value();
            return vc.toStringArray();
        }
        throw this.unexpectedRetrieval();
    }

    /**
 
View Full Code Here

Examples of viewer.common.RuntimeExecCommand.toStringArray()

        exec_cmd.addTokenizedString( opt4jvm );
        exec_cmd.addWholeString( "-jar" );
        exec_cmd.addWholeString( jar_path );

        launcher = new Launcher();
        if (    ( exec_err_msg = launcher.exec( exec_cmd.toStringArray() ) )
             != null ) {
            Dialogs.error( null, "The following process exits with error:\n"
                               + exec_cmd.toString() + "\n" + exec_err_msg );
            System.exit( 1 );
        }
View Full Code Here

Examples of wpn.hdri.ss.data.attribute.AttributeValuesView.toStringArray()

    public void persist() {
        try {
            Multimap<AttributeName, AttributeValue<?>> values = attributesManager.takeAllAttributeValues(lastTimestamp.getAndSet(Timestamp.now()), AttributesManager.DEFAULT_ATTR_GROUP);
            AttributeValuesView view = new AttributeValuesView(values);

            Files.write(output, Arrays.asList(view.toStringArray()), Charset.forName("UTF-8"), StandardOpenOption.CREATE, StandardOpenOption.APPEND);
        } catch (IOException e) {
            LOG.error("Unable to store data file.", e);
        }
    }
}
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.