gpt4 book ai didi

org.jboss.windup.rules.apps.xml.model.XmlFileModel.asFile()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-23 02:29:05 24 4
gpt4 key购买 nike

本文整理了Java中org.jboss.windup.rules.apps.xml.model.XmlFileModel.asFile()方法的一些代码示例,展示了XmlFileModel.asFile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlFileModel.asFile()方法的具体详情如下:
包路径:org.jboss.windup.rules.apps.xml.model.XmlFileModel
类名称:XmlFileModel
方法名:asFile

XmlFileModel.asFile介绍

暂无

代码示例

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-xml-impl

parser.parse(sourceFile.asFile(), handler);

代码示例来源:origin: windup/windup

parser.parse(sourceFile.asFile(), handler);

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api

String defaultName = payload.getArchive() == null ? payload.asFile().getParentFile().getName() : payload.getArchive()
      .getFileName();
MavenProjectModel mavenProjectModel = extractMavenProjectModel(event, context, defaultName, payload);
    File parentFile = payload.asFile().getParentFile();
    FileModel parentFileModel = new FileService(event.getGraphContext()).findByPath(parentFile.getAbsolutePath());
    if (parentFileModel != null && !isAlreadyMavenProject(parentFileModel))

代码示例来源:origin: windup/windup

if (model.asFile().length() == 0)

代码示例来源:origin: windup/windup

String defaultName = payload.getArchive() == null ? payload.asFile().getParentFile().getName() : payload.getArchive()
      .getFileName();
MavenProjectModel mavenProjectModel = extractMavenProjectModel(event, context, defaultName, payload);
    File parentFile = payload.asFile().getParentFile();
    FileModel parentFileModel = new FileService(event.getGraphContext()).findByPath(parentFile.getAbsolutePath());
    if (parentFileModel != null && !isAlreadyMavenProject(parentFileModel))

代码示例来源:origin: windup/windup

File xmlFile = xmlFileModel.asFile();
  for (XmlFileModel foundPom : mavenProjectModel.getMavenPom())
    File foundPomFile = foundPom.asFile();
    if (foundPomFile.getAbsoluteFile().equals(xmlFile))

代码示例来源:origin: org.jboss.windup.rules.apps/windup-rules-java-api

File xmlFile = xmlFileModel.asFile();
  for (XmlFileModel foundPom : mavenProjectModel.getMavenPom())
    File foundPomFile = foundPom.asFile();
    if (foundPomFile.getAbsoluteFile().equals(xmlFile))

代码示例来源:origin: windup/windup

if (file.asFile().length() == 0)

代码示例来源:origin: windup/windup

default Document asDocument()
  {
    XMLDocumentCache.Result cacheResult = XMLDocumentCache.get(this);
    Document document;
    if (cacheResult.isParseFailure())
    {
      throw new WindupException("Could not load " + asFile() + " due to previous parse failure");
    }
    else if (cacheResult.getDocument() == null)
    {
      FileModel fileModel = getGraph().frameElement(getElement(), FileModel.class);
      try (InputStream is = fileModel.asInputStream())
      {
        document = LocationAwareXmlReader.readXML(is);
        XMLDocumentCache.cache(this, document);
      }
      catch (Exception e)
      {
        XMLDocumentCache.cacheParseFailure(this);
        throw new WindupException("Exception reading document due to: " + e.getMessage(), e);
      }
    }
    else
    {
      document = cacheResult.getDocument();
    }

    return document;
  }
}

代码示例来源:origin: org.jboss.windup.rules.apps/rules-java

File parentFile = payload.asFile().getParentFile();
FileModel parentFileModel = new FileService(event.getGraphContext()).findByPath(parentFile.getAbsolutePath());
if (parentFileModel != null)

代码示例来源:origin: org.jboss.windup.rules.apps/rules-java

public MavenProjectModel extractMavenProjectModel(GraphRewrite event, XmlFileModel xmlResourceModel)
  File myFile = xmlResourceModel.asFile();
  Document document = xmlResourceModel.asDocument();
    for (XmlFileModel foundPom : mavenProjectModel.getMavenPom())
      File foundPomFile = foundPom.asFile();
      if (foundPomFile.getAbsoluteFile().equals(myFile))

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com