Examples of search()


Examples of com.opengamma.master.position.PositionMaster.search()

    posRequest.setVersionCorrection(VC);
    PositionSearchResult posResult = new PositionSearchResult();
    posResult.getDocuments().add(posDoc);
   
    when(mockPortfolio.get(UID)).thenReturn(prtDoc);
    when(mockPosition.search(posRequest)).thenReturn(posResult);
    MasterPositionSource test = new MasterPositionSource(mockPortfolio, mockPosition);
    Portfolio testResult = test.getPortfolio(UID, VC);
    verify(mockPortfolio, times(1)).get(UID);
    verify(mockPosition, times(1)).search(posRequest);
   

Examples of com.opengamma.master.region.RegionMaster.search()

    request.setVersionCorrection(VC);
   
    RegionSearchResult result = new RegionSearchResult();
    result.getDocuments().add(new RegionDocument(example()));
   
    when(mock.search(request)).thenReturn(result);
    MasterRegionSource test = new MasterRegionSource(mock, VC);
    Region testResult = test.getHighestLevelRegion(ID);
    verify(mock, times(1)).search(request);
   
    assertEquals(example(), testResult);

Examples of com.opengamma.master.security.SecurityMaster.search()

      s_logger.info("Processing security type " + securityType);
      SecuritySearchRequest searchRequest = new SecuritySearchRequest();
      searchRequest.setName("*");
      searchRequest.setSecurityType(securityType);
      searchRequest.setPagingRequest(PagingRequest.FIRST_PAGE);
      SecuritySearchResult search = securityMaster.search(searchRequest);
      s_logger.info("Search returned " + search.getPaging().getTotalItems() + " securities");
      List<ManageableSecurity> securities = search.getSecurities();
      int count = 0;
      for (ManageableSecurity security : securities) {
        if (security == null) {

Examples of com.projity.grouping.core.model.NodeModel.search()

      return ((double) calcSummedActualWork()) / work;
  }

  private long calcSummedWork() {
    NodeModel nodeModel = getProject().getTaskOutline();
    Node node = nodeModel.search(this);
    if (node == null)
      return 0;
    Number value = (Number) Configuration.getFieldFromId("Field.work")
        .getValue(node, nodeModel, null);
    return value.longValue();

Examples of com.pugh.sockso.music.MusicSearch.search()

       
        final Request req = getRequest();
        final String query = req.getUrlParam( 2 );

        final TSearch tpl = new TSearch();
        tpl.setItems( musicSearch.search(query) );
        getResponse().showJson( tpl.makeRenderer() );

    }

    /**
 

Examples of com.puppetlabs.geppetto.forge.v2.service.ModuleService.search()

*/
public class ModuleTests extends ForgeAPITestBase {
  @Test
  public void testListModules() throws IOException {
    ModuleService service = getTestUserForge().createModuleService();
    List<Module> modules = service.search("puppetlabs", null);
    assertNotNull("Null module list", modules);
    assertFalse("Empty module list", modules.isEmpty());

    boolean someReleaseLinkTested = false;
    int moduleCount = modules.size();

Examples of com.redcareditor.onig.Rx.search()

    for (Bundle bundle : Bundle.getBundles()) {
      for (Grammar grammar : bundle.getGrammars()) {
        re = grammar.firstLineMatch;
        if (re instanceof NullRx) {
        } else {
          if (re.search(firstLine, 0, (int) firstLine.length()) != null) {
            setGrammarByName(grammar.name);
            return grammar.name;
          }
        }
      }

Examples of com.sleepycat.je.tree.Tree.search()

    private BIN searchForBIN(DatabaseImpl db, byte[] mainKey, byte[] dupKey)
        throws DatabaseException {

        /* Search for this IN */
        Tree tree = db.getTree();
        IN in = tree.search
            (mainKey, SearchType.NORMAL, -1, null, false /*updateGeneration*/);

        /* Couldn't find a bin, return null */
        if (in == null) {
            return null;

Examples of com.sohospace.dictionary.Dictionary.search()

    for (setup = offset, end = offset; setup < beaf.length()
        && CharSet.isCjkUnifiedIdeographs(beaf.charAt(setup)); end = ++setup) {
      for (int count = 1; end < beaf.length()
          && CharSet.isCjkUnifiedIdeographs(beaf.charAt(end++)); count++) {
        //��һ��forѭ��ʱ��end=setup+1
        word = vocabulary.search(beaf, setup, count);
        if (word.isUndefined()) {
          if (unidentifiedIndex < 0 && setup >= identifiedEnd) {
            unidentifiedIndex = setup;
          }
          break;

Examples of com.stevesoft.pat.Regex.search()

        return regex.replaceAll(type);
    }
   
    private static boolean isGeneric(String type) {
        Regex regex = new Regex(".*(?@<>)");
        return regex.search(type);
    }
   
    private static boolean isArray(String type) {
        Regex regex = new Regex(".*(?@[])");
        return regex.search(type);
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.