Examples of extract()


Examples of org.apache.jackrabbit.vault.packaging.VaultPackage.extract()

                }
                else {
                    // default to replace
                    opts.setImportMode(ImportMode.REPLACE);
                }
                pkg.extract(session, opts);
                return true;
            }
        } catch (Exception e) {
            log.error("could not read / install the package", e);
            throw new ReplicationPackageReadingException(e);
View Full Code Here

Examples of org.apache.jmeter.extractor.Extractor.extract()

    }

    private String process(String textToParse) {
        List<String> result = new ArrayList<String>();
        Extractor extractor = HtmlExtractor.getExtractorImpl(cssJqueryLabeledChoice.getText());
        final int nbFound = extractor.extract(
                cssJqueryField.getText(), attributeField.getText(), -1, textToParse, result, 0, null);

        // Construct a multi-line string with all matches
        StringBuilder sb = new StringBuilder();
        sb.append("Match count: ").append(nbFound).append("\n");
View Full Code Here

Examples of org.apache.karaf.kar.internal.Kar.extract()

            dontAddToStartup = "runtime".equals(artifact.getScope());
            if ("kar".equals(artifact.getType()) && acceptScope(artifact)) {
                File file = artifact.getFile();
                try {
                    Kar kar = new Kar(file.toURI());
                    kar.extract(new File(system.getPath()), new File(workDirectory));
                    for (URI repoUri : kar.getFeatureRepos()) {
                        featuresService.removeRepository(repoUri);
                        featuresService.addRepository(repoUri);
                    }
                } catch (Exception e) {
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.baseval.annotation.extractor.DefaultPropertyScanningMetaDataExtractor.extract()

        for (String targetExpression : targetExpressions)
        {
            propertyDetails = ExtValUtils
                .createPropertyDetailsForNewTarget(metaDataEntry, targetExpression);

            for (MetaDataEntry entry : extractor.extract(FacesContext.getCurrentInstance(),
                propertyDetails).getMetaDataEntries())
            {
                validationStrategy = ExtValUtils.getValidationStrategyForMetaData(entry.getKey());

                metaDataTransformer = ExtValUtils.getMetaDataTransformerForValidationStrategy(validationStrategy);
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.metadata.extractor.MetaDataExtractor.extract()

        for (String targetExpression : targetExpressions)
        {
            propertyDetails = ExtValUtils
                .createPropertyDetailsForNewTarget(metaDataEntry, targetExpression);

            for (MetaDataEntry entry : extractor.extract(facesContext, propertyDetails).getMetaDataEntries())
            {
                validationStrategy = ExtValUtils.getValidationStrategyForMetaData(entry.getKey());

                if(validationStrategy == null ||
                        PropertyValidationUtils.isValidationSkipped(facesContext,
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.validation.parameter.DefaultValidationParameterExtractor.extract()

        ValidationParameterExtractor extractor = new DefaultValidationParameterExtractor();

        TestPerson person = new TestPerson();
        Required required = person.getClass().getDeclaredField("firstName").getAnnotation(Required.class);

        assertNotNull(extractor.extract(required).containsKey(ViolationSeverity.class));
        assertNotNull(extractor.extract(required, ViolationSeverity.class).iterator().next());
        assertEquals(FacesMessage.SEVERITY_WARN, extractor.extract(required, ViolationSeverity.class).iterator().next());
    }

    public void testParameterStyleTwo() throws Exception
View Full Code Here

Examples of org.apache.myfaces.extensions.validator.core.validation.parameter.ValidationParameterExtractor.extract()

        ValidationParameterExtractor extractor = new DefaultValidationParameterExtractor();

        TestPerson person = new TestPerson();
        Required required = person.getClass().getDeclaredField("lastName").getAnnotation(Required.class);

        assertNotNull(extractor.extract(required).containsKey(PropertyValidationInterceptor.class));
        assertNotNull(extractor.extract(required, PropertyValidationInterceptor.class).iterator().next());
        assertEquals(1, extractor.extract(required, PropertyValidationInterceptor.class).size());
        assertEquals(TestValidationInterceptor.class.getName(), extractor.extract(required, PropertyValidationInterceptor.class, PropertyValidationInterceptor.class).iterator().next().getClass().getName());
    }
View Full Code Here

Examples of org.apache.oodt.opendapps.extractors.DasMetadataExtractor.extract()

            // retrieve already extracted THREDDS metadata
            Metadata datasetMet = d.getDatasetMet(opendapUrl);
           
            // extract DAS metadata
            MetadataExtractor dasExtractor = new DasMetadataExtractor(dConn);
            dasExtractor.extract(datasetMet, conf);
           
            // extract NcML metadata, if available
           if (datasetMet.containsKey(ThreddsMetadataExtractor.SERVICE_TYPE_NCML)) {
              // retrieve URL of NcML document, previously stored
              final String ncmlUrl = datasetMet.getMetadata(ThreddsMetadataExtractor.SERVICE_TYPE_NCML);
View Full Code Here

Examples of org.apache.oodt.opendapps.extractors.MetadataExtractor.extract()

          LOG.log(Level.FINE, "Found OpenDAP access URL: "+ single.getUrlPath());
          String opendapurl = this.datasetURL + single.getUrlPath();
          // extract metadata from THREDDS catalog
          MetadataExtractor extractor = new ThreddsMetadataExtractor(dd);
          Metadata met = new Metadata();
          extractor.extract(met, conf);
          // index metadata by opendap access URL
          this.datasetMet.put(opendapurl, met);
          this.urls.add(opendapurl);
          break;
        }
View Full Code Here

Examples of org.apache.oodt.opendapps.extractors.NcmlMetadataExtractor.extract()

            // extract NcML metadata, if available
           if (datasetMet.containsKey(ThreddsMetadataExtractor.SERVICE_TYPE_NCML)) {
              // retrieve URL of NcML document, previously stored
              final String ncmlUrl = datasetMet.getMetadata(ThreddsMetadataExtractor.SERVICE_TYPE_NCML);
              MetadataExtractor ncmlExtractor = new NcmlMetadataExtractor(ncmlUrl);
              ncmlExtractor.extract(datasetMet, conf);
            }
           
            // debug: write out all metadata entries
            for (String key : datasetMet.getAllKeys()) {
              LOG.log(Level.FINER, "Metadata key="+key+" value="+datasetMet.getMetadata(key));
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.