Examples of CustomValue


Examples of mil.nga.giat.geowave.analytics.mapreduce.kde.parser.CustomValue

      }
    }
    else {

      // Calls external implementation
      final CustomValue customValue = customValues.get(parameter.getName());
      if (customValue == null) {
        throw new IllegalArgumentException(
            "Parameter was not defined '" + parameter.getName() + "'");
      }
      value = customValue.getValue();
      if (value == null) {
        throw new IllegalArgumentException(
            "Parameter '" + parameter.getName() + "' was defined as a custom value but did not provide a valid value");
      }
View Full Code Here

Examples of net.sf.redmine_mylyn.api.model.CustomValue

    }
    return null;
  }
 
  public void setCustomValue(int customFieldId, String value) {
    CustomValue customValue= getByCustomFieldId(Integer.valueOf(customFieldId));
    if(customValue==null) {
      customValue = new CustomValue();
      customValue.setCustomFieldId(customFieldId);
      customValue.setValue(value);
      getModifiableList().add(customValue);
    } else {
      customValue.setValue(value);
    }
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.api.model.CustomValue

    cf.setForAll(isForAll);
    return cf;
  }
 
  static CustomValue buildCustomValue(int id, int customFieldId, String value) throws Exception {
    CustomValue customValue = new CustomValue();
    setId(customValue, id);
    customValue.setCustomFieldId(customFieldId);
    customValue.setValue(value);
    return customValue;
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.api.model.CustomValue

    assertEquals(""+issue.getParentId(), root.getAttribute(RedmineAttribute.PARENT.getTaskKey()).getValue());
    assertEquals("[3, 4]", Arrays.toString(root.getAttribute(RedmineAttribute.SUBTASKS.getTaskKey()).getValues().toArray()));
    //TODO available Status

    /* CustomValues */
    CustomValue cv = issue.getCustomValues().get(5);
    attribute = root.getAttribute(IRedmineConstants.TASK_KEY_PREFIX_ISSUE_CF+cv.getCustomFieldId());
    assertNotNull(attribute);
    assertEquals("", attribute.getValue());
    cv = issue.getCustomValues().get(11);
    attribute = root.getAttribute(IRedmineConstants.TASK_KEY_PREFIX_ISSUE_CF+cv.getCustomFieldId());
    assertNotNull(attribute);
    assertEquals(cv.getValue(), attribute.getValue());
    cv = issue.getCustomValues().get(12);
    attribute = root.getAttribute(IRedmineConstants.TASK_KEY_PREFIX_ISSUE_CF+cv.getCustomFieldId());
    assertNotNull(attribute);
    assertEquals(cv.getValue(), attribute.getValue());
    cv = issue.getCustomValues().get(13);
    attribute = root.getAttribute(IRedmineConstants.TASK_KEY_PREFIX_ISSUE_CF+cv.getCustomFieldId());
    assertNotNull(attribute);
    assertEquals(""+df.parse(cv.getValue()).getTime(), attribute.getValue());

    /* Journals */
    /* affected by TaskAttributeMapper, RedmineTaskAttributeMapper */
    attribute = root.getAttribute(TaskAttribute.PREFIX_COMMENT + "3");
    Journal journal = issue.getJournals().get(3);
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.