Examples of HashMap


Examples of java.util.HashMap

    protected void copyMetadataState(Command copy) {
        if(this.getExternalGroupContexts() != null) {
            copy.externalGroups = (GroupContext)this.externalGroups.clone();
        }
        if(this.tempGroupIDs != null) {
            copy.setTemporaryMetadata(new HashMap(this.tempGroupIDs));
        }
       
        copy.setIsResolved(this.isResolved());
        copy.plan = this.plan;
        if (this.correlatedReferences != null) {
View Full Code Here

Examples of java.util.HashMap

  {
    int groups = 0;
    if (this.searchCriteria != null)
    {
      Iterator it = this.searchCriteria.iterator();
      HashMap tempHashMap = new HashMap();
      while (it.hasNext())
      {
        SearchCriteriaVO searchCriteriaVO = (SearchCriteriaVO) it.next();
        tempHashMap.put(new Integer(Integer.parseInt(searchCriteriaVO.getGroupID())), "");
      } //end of while loop (iterator.hasNext())
      groups = tempHashMap.size();
    } //end of if statement (this.searchCriteria != null)
    return groups;
  } //end of getNumberOfGroups method
View Full Code Here

Examples of java.util.HashMap

   * @return A HashMap of available condition
   * options for the search criteria.
   */
  public static final HashMap getConditionOptions()
  {
    HashMap conditions = new HashMap();
    conditions.put(BEGINS_WITH_INTEGER , BEGINS_WITH_STRING);
    conditions.put(CONTAINS_INTEGER , CONTAINS_STRING);
    conditions.put(ENDS_WITH_INTEGER , ENDS_WITH_STRING);
    conditions.put(EQUALS_INTEGER , EQUALS_STRING);
    conditions.put(GREATER_THAN_INTEGER, GREATER_THAN_STRING);
    conditions.put(HAS_INTEGER , HAS_STRING);
    conditions.put(LESS_THAN_INTEGER , LESS_THAN_STRING);
    return conditions;
  } //end of getConditionOptions method
View Full Code Here

Examples of java.util.HashMap

    ServletActionContext actionContext = getActionContext();
    ActionConfig actionConfig = newMock(ActionConfig.class);
    ModuleConfig moduleConfig = newMock(ModuleConfig.class);
    ActionServlet servlet = newMock(ActionServlet.class);
    Map applicationScope = newMock(Map.class);
    Map actions = new HashMap();
    Action action = new Action();
   
    expect(actionConfig.getModuleConfig()).andReturn(moduleConfig);
    expect(moduleConfig.getPrefix()).andReturn("prefix");
    expect(actionContext.getApplicationScope()).andReturn(applicationScope);
    expect(applicationScope.get("actionsprefix")).andReturn(actions);
    expect(actionCreator.createAction(String.class)).andReturn(action);
    expect(actionContext.getActionServlet()).andReturn(servlet);

    replayMocks();
    createAction.getAction(actionContext, "java.lang.String", actionConfig);
    verifyMocks();
   
    assertEquals(1, actions.size());
  }
View Full Code Here

Examples of java.util.HashMap

  @BeforeMethod
  public void setUp()
  {

    model = new HashMap();
    view = newMock(View.class);
    context = newMock(ActionContext.class);
    request = newMock(HttpServletRequest.class);
    servletContext = newMock(ServletContext.class);
    wac = newMock(WebApplicationContext.class);
View Full Code Here

Examples of java.util.HashMap

    {
      result = ((MutableEndpoint)epr).toMap();
    }
    else
    {
      result = new HashMap();
      // todo map access to xml tree
      log.debug("Map access not implemented");
    }
    return result;
  }
View Full Code Here

Examples of java.util.HashMap

   *
   * @param expected document count
   */
  public WebRobot(int expectedDocumentCount) {
    log = Category.getInstance(getClass().getName());
    content2UrlMap = new HashMap(expectedDocumentCount);
    registerVisitedList(new HashedMemoryTaskList(false,
          expectedDocumentCount));
    registerToDoList(new HashedMemoryTaskList(true,
          expectedDocumentCount));
    this.expectedDocumentCount = expectedDocumentCount;
View Full Code Here

Examples of java.util.HashMap

  @Test
  public void testEmptyMapBindOutwards()
  {

    BindableBean form = new BindableBean();
    Map map = handler.getPropertyAsMap(new HashMap());
    form.setLookupMap(map);

    TargetBean targetBean = new TargetBean();
    form.setTargetBean(targetBean);
    targetBean.setDomainClass(new DomainClass(4));
View Full Code Here

Examples of java.util.HashMap

  @Test
  public void testEmptyMapBindInwards()
  {

    BindableBean form = new BindableBean();
    form.setLookupMap(new HashMap());

    TargetBean targetBean = new TargetBean();
    form.setTargetBean(targetBean);

    form.setSelectedId("1");
View Full Code Here

Examples of java.util.HashMap

  @Test
  public void testGetPropertyAsMap()
  {

    BindSelectHandler handler = new BindSelectHandler();
    HashMap hashMap = new HashMap();
    assert hashMap == handler.getPropertyAsMap(hashMap);
  }
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.