Tabnine Logo
ArchiveMetadata.getEntries
Code IndexAdd Tabnine to your IDE (free)

How to use
getEntries
method
in
org.jboss.windup.metadata.type.archive.ArchiveMetadata

Best Java code snippets using org.jboss.windup.metadata.type.archive.ArchiveMetadata.getEntries (Showing top 6 results out of 315)

origin: org.jboss.windup/windup-engine

@Override
public void processMeta(T fileMeta) {
  File file = fileMeta.getFilePointer();
  if (LOG.isTraceEnabled()) {
    LOG.trace("Processing Extension: " + file.getAbsolutePath());
  }
  decoratorPipeline.processMeta(fileMeta);
  if (isOfInterest(fileMeta)) {
    // add it to it's parent's results.
    fileMeta.getArchiveMeta().getEntries().add(fileMeta);
  }
}
origin: org.jboss.windup/windup-engine

@Override
public void processMeta(XmlMetadata fileMeta) {
  Document document = fileMeta.getParsedDocument();
  if (document == null) {
    if (LOG.isDebugEnabled()) {
      LOG.debug("Document was null.  Problem parsing: " + fileMeta.getFilePointer().getAbsolutePath());
    }
    // attach the bad file so we see it in the reports...
    fileMeta.getArchiveMeta().getEntries().add(fileMeta);
    return;
  }
  super.processMeta(fileMeta);
}
origin: org.jboss.windup/windup-reporting

  @Override
  public void process(ArchiveMetadata archive, File reportDirectory) {
    //for each resource, create and persist a serialized data object.
       for(ArchiveMetadata archiveMeta : archive.getNestedArchives()) {
      //recurse.
      this.process(archiveMeta, reportDirectory);
    }
     
    for(FileMetadata fileMeta : archive.getEntries()) {
      //convert file resource to meta object and persist.
      MetaResultTransformer transformer = resolver.resolveTransformer(fileMeta.getClass());
      ResourceData data = transformer.toResourceData(fileMeta, reportDirectory);

      File metaOut = new File(fileMeta.getFilePointer().getAbsolutePath() + ".windup.meta");
      try {
        marshaller.marshal(metaOut, data);
      } catch (IOException e) {
        LOG.error("Exception writing meta: "+metaOut.getAbsolutePath(), e);	
      }            
    }
  }
}
origin: org.jboss.windup/windup-reporting

protected ArchiveReport toArchiveReport(ArchiveMetadata archive, File reportDirectory) {
  ArchiveMetaTransformer fmt = new ArchiveMetaTransformer();
  ArchiveReport report = (ArchiveReport)fmt.toResourceReport(archive, reportDirectory, null);
     for(ArchiveMetadata meta : archive.getNestedArchives()) {
    ArchiveReport temp = toArchiveReport(meta, reportDirectory);
    report.getNestedArchiveReports().add(temp);
  }
  if( this.resolver == null )
    throw new IllegalStateException("Resolver not set for " + StaticHtmlReporter.class.getSimpleName() );
  
  for(FileMetadata fileMeta : archive.getEntries()) {
    MetaResultTransformer transformer = this.resolver.resolveTransformer(fileMeta.getClass());
    ResourceReport data = transformer.toResourceReport(fileMeta, reportDirectory, report);
    report.getResourceReports().add(data);
  }
  return report;
}
origin: org.jboss.windup/windup-engine

for(FileMetadata archiveEntryMeta : tempMeta.getArchiveMeta().getEntries()) {
  if(archiveEntryMeta.getFilePointer().equals(tempMeta.getFilePointer())) {
    result = archiveEntryMeta;
origin: org.jboss.windup/windup-reporting

double estimate = 0;
for (FileMetadata ir : result.getEntries()) {
  for (AbstractDecoration dr : ir.getDecorations()) {
    if (dr instanceof Classification) {
org.jboss.windup.metadata.type.archiveArchiveMetadatagetEntries

Popular methods of ArchiveMetadata

  • getDecorations
  • getName
  • getFilePointer
  • getNestedArchives
  • getRelativePath

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now