Package org.apache.uima.collection.metadata

Examples of org.apache.uima.collection.metadata.NameValuePair


   * (non-Javadoc)
   *
   * @see org.apache.uima.collection.metadata.CasProcessorConfigurationParameterSettings#getParameterValue(java.lang.String)
   */
  public Object getParameterValue(String aParamName) {
    NameValuePair valueObject = getParamValueObject(aParamName);
    if (valueObject != null) {
      return valueObject.getValue();
    }
    return null;
  }
View Full Code Here


   *
   * @see org.apache.uima.collection.metadata.CasProcessorConfigurationParameterSettings#setParameterValue(java.lang.String,
   *      java.lang.Object)
   */
  public void setParameterValue(String aParamName, Object aValue) {
    NameValuePair valueObject = getParamValueObject(aParamName);
    if (valueObject != null) {
      valueObject.setValue(aValue);
    } else {
      paramList.add(new NameValuePairImpl(aParamName, aValue));
    }
  }
View Full Code Here

    CasProcessorRunInSeperateProcess rip = getRunInSeparateProcess();
    if (rip != null) {
      CasProcessorExecutable exe = rip.getExecutable();
      if (exe != null) {
        ArrayList envs = exe.getEnvs();
        NameValuePair nvp;
        boolean replacedExisiting = false;

        for (int i = 0; envs != null && i < envs.size(); i++) {
          nvp = (NameValuePair) envs.get(i);
          if (nvp.getName().equals(aEnvKeyName)) {
            nvp.setValue(aEnvKeyValue);
            replacedExisiting = true;
            break; // done
          }
        }
        if (envs != null && !replacedExisiting) {
View Full Code Here

    CasProcessorRunInSeperateProcess rip = getRunInSeparateProcess();
    if (rip != null) {
      CasProcessorExecutable exe = rip.getExecutable();
      if (exe != null) {
        ArrayList envs = exe.getEnvs();
        NameValuePair nvp;
        boolean replacedExisiting = false;

        for (int i = 0; envs != null && i < envs.size(); i++) {
          nvp = (NameValuePair) envs.get(i);
          if (nvp.getName().equals(aEnvKeyName)) {
            nvp.setValue(aEnvKeyValue);
            replacedExisiting = true;
            break; // done
          }
        }
        if (envs != null && !replacedExisiting) {
View Full Code Here

TOP

Related Classes of org.apache.uima.collection.metadata.NameValuePair

Copyright © 2018 www.massapicom. 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.