Package java.util

Examples of java.util.List.indexOf()


            return context;
        }

        List outputElements = context.getOutputElements(getResultSetName());

        int index = outputElements.indexOf(mappingClassSymbol);

        Object value = values.get(index);

        VariableContext varContext = context.getVariableContext();
View Full Code Here


      }
      prevDestEntryType = destEntryType;

      if (RelationshipType.NON_CUMULATIVE.equals(fieldMap.getRelationshipType())
          && result.contains(destValue)) {
        int index = result.indexOf(destValue);
        // perform an update if complex type - can't map strings
        Object obj = result.get(index);
        // make sure it is not a String
        if (obj != null && !obj.getClass().isAssignableFrom(String.class)) {
          map(null, srcValue, obj, false, null);
View Full Code Here

        HandlerPipeline pipeline = new HandlerPipeline(getXFire().getInPhases());
        pipeline.addHandlers(service.getInHandlers());

        List inHandlers = pipeline.getPhaseHandlers(Phase.USER).getHandlers();
        int firstPos = inHandlers.indexOf(testHandler);
        int secondPos = inHandlers.indexOf(testHandler2);
        assertTrue(firstPos != -1);
        assertTrue(secondPos != -1);
        assertTrue(firstPos < secondPos);
    }
View Full Code Here

        HandlerPipeline pipeline = new HandlerPipeline(getXFire().getInPhases());
        pipeline.addHandlers(service.getInHandlers());

        List inHandlers = pipeline.getPhaseHandlers(Phase.USER).getHandlers();
        int firstPos = inHandlers.indexOf(testHandler);
        int secondPos = inHandlers.indexOf(testHandler2);
        assertTrue(firstPos != -1);
        assertTrue(secondPos != -1);
        assertTrue(firstPos < secondPos);
    }
View Full Code Here

        HandlerPipeline pipeline = new HandlerPipeline(getXFire().getInPhases());
        pipeline.addHandlers(service.getInHandlers());

        List inHandlers = pipeline.getPhaseHandlers(Phase.USER).getHandlers();
        int firstPos = inHandlers.indexOf(testHandler);
        int secondPos = inHandlers.indexOf(testHandler2);
        assertTrue(firstPos != -1);
        assertTrue(secondPos != -1);
        assertTrue(firstPos > secondPos);
    }
View Full Code Here

        HandlerPipeline pipeline = new HandlerPipeline(getXFire().getInPhases());
        pipeline.addHandlers(service.getInHandlers());

        List inHandlers = pipeline.getPhaseHandlers(Phase.USER).getHandlers();
        int firstPos = inHandlers.indexOf(testHandler);
        int secondPos = inHandlers.indexOf(testHandler2);
        assertTrue(firstPos != -1);
        assertTrue(secondPos != -1);
        assertTrue(firstPos > secondPos);
    }
   
View Full Code Here

          break;
        }
        String s = SourceCategoryDataset.this.classifier.getMapper().getString(o);
        // Value not taken in account if it does not belong to a category
        if (s==null) continue;
        int idx = list.indexOf(s);
        if (idx==-1) continue;  
        categoryCount[idx]++;
      }
    }
   
View Full Code Here

    buffer.append(getXPathNameStep());

    List mySiblings = parent.elements(getQName());

    if (mySiblings.size() > 1) {
      int idx = mySiblings.indexOf(this);

      if (idx >= 0) {
        buffer.append("[");

        buffer.append(Integer.toString(++idx));
View Full Code Here

        }
        else if(htmlTag == Tag.OL)
        {
          orderedListIndex[i] = 0;
          String parentName = parent.getName().toLowerCase();
          whitespaces[i] = whitespaces[elements.indexOf(parent)] + whitespace;
          if(parentName.equals("li"))
          {
            chunk = "";
          }
          else
View Full Code Here

            ++crtOffset;
          }
        }
        else if(htmlTag == Tag.UL)
        {
          whitespaces[i] = whitespaces[elements.indexOf(parent)] + whitespace;

          String parentName = parent.getName().toLowerCase();
          if(parentName.equals("li"))
          {
            chunk = "";
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.