Examples of findByName()


Examples of org.gedcom4j.query.Finder.findByName()

        assertTrue(gp.errors.isEmpty());
        assertTrue("There should be a warning because the file says it's 5.5 but has 5.5.1 tags in it",
                !gp.warnings.isEmpty());
        Gedcom g = gp.gedcom;
        Finder f = new Finder(g);
        List<Individual> found = f.findByName("Moor", "Mary");
        assertNotNull(found);
        assertEquals(1, found.size());
        Individual mary = found.get(0);
        assertNotNull(mary);
        List<IndividualAttribute> facts = mary.getAttributesOfType(IndividualAttributeType.FACT);
View Full Code Here

Examples of org.geogrid.aist.tsukubagama.services.request.form.AccountRequestAttrCollection.findByName()

        String organization = request.getAttribute("organization");

        AccountRequestAttrCollection attrCollection =
            newAccountRequestAttrCollection(request.getAccountType());

        AccountRequestAttr attr = attrCollection.findByName("organization");
        if ( attr.isTypeOfSelectBox() ) {
            AccountRequestAttr.SelectOption option =
                attr.findOptionByValue(organization);
            if (option != null) {
                String vomrsValue = option.getVomrsValue();
View Full Code Here

Examples of org.geomajas.sld.client.SldGwtServiceAsync.findByName()

      public void onChange(ChangeEvent event) {
        int index = sldList.getSelectedIndex();
        if (index >= 0) {
          String name = sldList.getItemText(index);
          service.findByName(name, new AsyncCallback<StyledLayerDescriptorInfo>() {

            public void onSuccess(StyledLayerDescriptorInfo sld) {
              if (!sld.getChoiceList().isEmpty()) {
                StyledLayerDescriptorInfo.ChoiceInfo info = sld.getChoiceList().iterator().next();
                if (info.ifNamedLayer()) {
View Full Code Here

Examples of org.gradle.api.artifacts.ConfigurationContainer.findByName()

            public void execute(final SourceSet sourceSet) {
                ConventionMapping outputConventionMapping = ((IConventionAware) sourceSet.getOutput()).getConventionMapping();

                ConfigurationContainer configurations = project.getConfigurations();

                Configuration compileConfiguration = configurations.findByName(sourceSet.getCompileConfigurationName());
                if (compileConfiguration == null) {
                    compileConfiguration = configurations.create(sourceSet.getCompileConfigurationName());
                }
                compileConfiguration.setVisible(false);
                compileConfiguration.setDescription(String.format("Compile classpath for %s.", sourceSet));
View Full Code Here

Examples of org.gradle.api.tasks.TaskContainer.findByName()

                    "and no '{}' configuration exists in project '{}'.", Dependency.ARCHIVES_CONFIGURATION,
                    project.getPath());
        } else {
            // Flag to publish the Ivy XML file, but no ivy descriptor file inputted, activate default upload${configuration}.
            // ATTENTION: Tasks not part of the execution graph have withType(Upload.class) false ?!? Need to check for type our self.
            Task candidateUploadTask = tasks.findByName(archiveConfig.getUploadTaskName());
            if (candidateUploadTask == null) {
                log.warn("Cannot publish Ivy descriptor if ivyDescriptor not set in task '{}' " +
                        "and task '{}' does not exist." +
                        "\nAdding \"apply plugin: 'java'\" or any other plugin extending the 'base' plugin" +
                        "will solve this issue.",
View Full Code Here

Examples of org.kuali.rice.kew.doctype.service.DocumentTypeService.findByName()

   * @param replacement the new value
   * @return the existing value
   */
  public String updatePostProcessorName(String docTypeName, String replacement) {
    DocumentTypeService documentTypeService = GlobalResourceLoader.getService("enDocumentTypeService");
    DocumentType docTypeObj = DocumentType.from(documentTypeService.findByName(docTypeName));
    String originalPostProcessorName = docTypeObj.getPostProcessorName();
    docTypeObj.setPostProcessorName(replacement);
    documentTypeService.save(docTypeObj);
   
    return originalPostProcessorName;
View Full Code Here

Examples of org.libreplan.business.scenarios.daos.IScenarioDAO.findByName()

        if (isNewObject()) {
            return !scenarioDAO.existsByNameAnotherTransaction(
                    name);
        } else {
            try {
                Scenario scenario = scenarioDAO.findByName(name);
                return scenario.getId().equals(getId());
            } catch (InstanceNotFoundException e) {
                return true;
            }
        }
View Full Code Here

Examples of org.palo.viewapi.internal.IRoleManagement.findByName()

        List <String> roleIds = new ArrayList<String>();
        List <String> roleNames = new ArrayList<String>();
        IRoleManagement rm = MapperRegistry.getInstance().getRoleManagement();
        if (isPublic) {
          try {
            Role r = (Role) rm.findByName("VIEWER");
            roleIds.add(r.getId());
            roleNames.add(r.getName());
          } catch (Throwable t) {
          }
        }
View Full Code Here

Examples of org.rhq.plugins.apache.parser.ApacheDirectiveTree.findByName()

        if (snmpIdx == 1) {
            return tree.getRootNode();
        }

        final List<ApacheDirective> allVhosts  = tree.findByName("<VirtualHost", true);
       
        //transform the SNMP index into the index of the vhost
        int idx = allVhosts.size() - snmpIdx + 1;

        return allVhosts.get(idx);
View Full Code Here

Examples of org.rhq.plugins.apache.util.ResourceTypes.findByName()

    }

    private ResourceContainer findApacheServerResource() throws Exception {
        InventoryManager im = PluginContainer.getInstance().getInventoryManager();
        ResourceTypes resourceTypes = new ResourceTypes(PluginLocation.APACHE_PLUGIN);
        ResourceType apacheServerResourceType = resourceTypes.findByName("Apache HTTP Server");

        return findApacheServerResource(im, apacheServerResourceType, im.getPlatform());
    }

    private ResourceContainer findApacheServerResource(InventoryManager im, ResourceType rt, Resource root) {
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.