Examples of populate()


Examples of org.jvnet.hk2.component.classmodel.InhabitantsFeed.populate()

      InhabitantsParsingContextGenerator ipcgen;
      try {
        InhabitantsFeed feed = InhabitantsFeed.create(habitat, ip);
        ipcgen = (USE_CACHE) ? ipcgCache.get(classpath, populator) : populator.call();
        feed.populate(ipcgen);
 
        if (logger.isLoggable(Level.FINER)) {
          Iterator<String> contracts = habitat.getAllContracts();
          while (contracts.hasNext()) {
              String contract = contracts.next();
View Full Code Here

Examples of org.nxplanner.tags.DomainContext.populate()

    private void checkAuthorization(Object object, String permission)
            throws RepositoryException {
        DomainContext context = new DomainContext();
        try {
            context.populate(object);
            int objectIdentifier = ((Integer)PropertyUtils.getProperty(object, "id")).intValue();
            if (!SystemAuthorizer.get().hasPermission(context.getProjectId(),
                    SecurityHelper.getRemoteUserId(ThreadServletRequest.get()), object, permission)) {
                throw new AuthorizationException("not authorized for object "+permission+": "+
                        objectClass+" "+objectIdentifier);
View Full Code Here

Examples of org.openamf.recordset.ASRecordSet.populate()

                row.add(toAMFObject(columns[iCol].get(iRow,null)));
            }
        }
       
       
        rs.populate(qry.getColumns(),rows);
       
        return rs;
    }
    private static Object toAMFObject(UDF udf) throws PageException {
        throw new ApplicationException("can't send a User Defined Function ("+udf.getFunctionName()+") via flash remoting");
View Full Code Here

Examples of org.openstreetmap.josm.gui.conflict.pair.nodes.NodeListMergeModel.populate()

        myWay.addNode(my.addNode(2));
        myWay.addNode(my.addNode(3));
        myWay.addNode(my.addNode(4));
        Way theirWay = their.addWay(1);

        model.populate(myWay, theirWay, null);

        List<Node> mergedNodes = inspectNodeList(model, "Merged");
        mergedNodes.add(new Node(1));

        model.copyMyToTop(new int[]{1,2}); // copy node 3 and 4
View Full Code Here

Examples of org.openstreetmap.josm.gui.conflict.pair.tags.TagMergeModel.populate()

    @Test
    public void populateNoConflichts() {
        Node my = new Node(1);
        Node their = new Node(1);
        TagMergeModel model = new TagMergeModel();
        model.populate(my, their);

        List<TagMergeItem> list = field("tagMergeItems")
        .ofType(List.class)
        .in(model)
        .get();
View Full Code Here

Examples of org.openstreetmap.josm.gui.conflict.tags.PasteTagsConflictResolverDialog.populate()

                // no tags found to paste. Abort.
                return;

            if (!tc.isApplicableToPrimitive()) {
                PasteTagsConflictResolverDialog dialog = new PasteTagsConflictResolverDialog(Main.parent);
                dialog.populate(tc, getSourceStatistics(), getTargetStatistics());
                dialog.setVisible(true);
                if (dialog.isCanceled())
                    return;
                buildChangeCommand(target, dialog.getResolution());
            } else {
View Full Code Here

Examples of org.openstreetmap.josm.gui.io.UploadSelectionDialog.populate()

                    tr("Warning"),
                    JOptionPane.INFORMATION_MESSAGE
            );
            return;
        }
        dialog.populate(
                modifiedCandidates,
                deletedCandidates
        );
        dialog.setVisible(true);
        if (dialog.isCanceled())
View Full Code Here

Examples of org.pathways.openciss.rest.impl.BloomFilter.populate()

      syncCache.setErrorHandler(ErrorHandlers.getConsistentLogAndContinue(Level.INFO));
      //empty the entire cache before repopulating
      syncCache.clearAll();
    System.out.println("calling BloomCache");
    BloomFilter b = new BloomCache().getCachedBloomFilter();
    b.populate();
    System.out.println("calling TrieCache");
    new TrieCache().getCachedTrie("name_first");
    new TrieCache().getCachedTrie("name_last");
  }
}
View Full Code Here

Examples of org.pentaho.platform.uifoundation.component.FilterDefinition.populate()

    int fail = 0;
    if ( filterList != null ) {
      Iterator filtersIterator = filterList.iterator();
      while ( filtersIterator.hasNext() ) {
        FilterDefinition filterDefinition = (FilterDefinition) filtersIterator.next();
        if ( filterDefinition.populate( parameterProviders, (String[]) defaultValues
          .get( filterDefinition.getName() ) ) ) {
          boolean ignore = true;
        } else {
          fail++;
        }
View Full Code Here

Examples of org.rendersnake.servlet.FormDataPopulator.populate()

        request.parameters.put("name"+FormHandler.VAR_NAME_POSTFIX,"me");
        request.parameters.put("age"+FormHandler.VAR_NAME_POSTFIX,"12");
        request.parameters.put("isMale"+FormHandler.VAR_NAME_POSTFIX,"false");
        request.parameters.put("hidden","notshown");
       
        pop.populate(request, p);
       
        assertEquals(p.name, "me");
        assertEquals(p.age, 12);
        assertEquals(p.isMale, false);
    }
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.