gpt4 book ai didi

ro.isdc.wro.model.WroModel.merge()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 14:57:05 30 4
gpt4 key购买 nike

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

WroModel.merge介绍

[英]Merge this model with another model. This is useful for supporting model imports.
[中]将此模型与另一个模型合并。这对于支持模型导入非常有用。

代码示例

代码示例来源:origin: alexo/wro4j

private void processImports(final Document document) {
 final NodeList importsList = document.getElementsByTagName(TAG_IMPORT);
 LOG.debug("number of imports: {}", importsList.getLength());
 for (int i = 0; i < importsList.getLength(); i++) {
  final Element element = (Element) importsList.item(i);
  final String name = element.getTextContent();
  LOG.debug("processing import: {}", name);
  Validate.notNull(locatorFactory, "The Locator cannot be null!");
  if (processedImports.contains(name)) {
   final String message = "Recursive import detected: " + name;
   LOG.error(message);
   throw new RecursiveGroupDefinitionException(message);
  }
  processedImports.add(name);
  model.merge(createImportedModel(name));
 }
}

代码示例来源:origin: ro.isdc.wro4j/wro4j-core

private void processImports(final Document document) {
 final NodeList importsList = document.getElementsByTagName(TAG_IMPORT);
 LOG.debug("number of imports: {}", importsList.getLength());
 for (int i = 0; i < importsList.getLength(); i++) {
  final Element element = (Element) importsList.item(i);
  final String name = element.getTextContent();
  LOG.debug("processing import: {}", name);
  notNull(locatorFactory, "The Locator cannot be null!");
  if (processedImports.contains(name)) {
   final String message = "Recursive import detected: " + name;
   LOG.error(message);
   throw new RecursiveGroupDefinitionException(message);
  }
  processedImports.add(name);
  model.merge(createImportedModel(name));
 }
}

代码示例来源:origin: org.nuiton.js/nuiton-js-wro

protected void processImports(final Document document) {
 final NodeList importsList = document.getElementsByTagName(TAG_IMPORT);
 LOG.debug("number of imports: {}", importsList.getLength());
 for (int i = 0; i < importsList.getLength(); i++) {
  final Element element = (Element) importsList.item(i);
  final String name = element.getTextContent();
  LOG.debug("processing import: {}", name);
  Validate.notNull(locatorFactory, "The Locator cannot be null!");
  if (processedImports.contains(name)) {
   final String message = "Recursive import detected: " + name;
   LOG.error(message);
   throw new RecursiveGroupDefinitionException(message);
  }
  processedImports.add(name);
  model.merge(createImportedModel(name));
 }
}

代码示例来源:origin: org.nuiton.js/nuiton-js-wro

@Override
protected void processImports(Document document) {
  final NodeList importsList = document.getElementsByTagName(TAG_IMPORT);
  LOG.debug("number of imports: {}", importsList.getLength());
  for (int i = 0; i < importsList.getLength(); i++) {
    final Element element = (Element) importsList.item(i);
    final String name = element.getTextContent();
    LOG.debug("processing import: {}", name);
    Validate.notNull(locatorFactory, "The Locator cannot be null!");
    // recherche de tous les imports a faire s'il y a des *
    List<String> imports = findAll(name);
    for (String importName : imports) {
      if (processedImports.contains(importName)) {
        final String message = "Recursive import detected: " + importName;
        LOG.error(message);
        throw new RecursiveGroupDefinitionException(message);
      }
      processedImports.add(importName);
      model.merge(createImportedModel(importName));
    }
  }
}

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