gpt4 book ai didi

org.codehaus.cargo.util.XmlReplacement.getReplacementBehavior()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 22:04:40 27 4
gpt4 key购买 nike

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

XmlReplacement.getReplacementBehavior介绍

暂无

代码示例

代码示例来源:origin: codehaus-cargo/cargo

/**
 * {@inheritDoc}
 */
@Override
public void addXmlReplacement(XmlReplacement xmlReplacement)
{
  Map<XmlReplacementDetails, String> fileReplacements =
    this.xmlReplacements.get(xmlReplacement.getFile());
  if (fileReplacements == null)
  {
    fileReplacements = new HashMap<XmlReplacementDetails, String>();
    this.xmlReplacements.put(xmlReplacement.getFile(), fileReplacements);
  }
  fileReplacements.put(new XmlReplacementDetails(xmlReplacement.getXpathExpression(),
    xmlReplacement.getAttributeName(), xmlReplacement.getReplacementBehavior()),
      xmlReplacement.getValue());
}

代码示例来源:origin: org.codehaus.cargo/cargo-core-api-util

/**
 * {@inheritDoc}
 */
@Override
public void replaceInXmlFile(XmlReplacement... xmlReplacements)
  throws CargoException
{
  Map<String, Map<XmlReplacementDetails, String>> replacements =
    new HashMap<String, Map<XmlReplacementDetails, String>>();
  for (XmlReplacement xmlReplacement : xmlReplacements)
  {
    Map<XmlReplacementDetails, String> replacementDetails =
      replacements.get(xmlReplacement.getFile());
    if (replacementDetails == null)
    {
      replacementDetails = new HashMap<XmlReplacementDetails, String>();
      replacements.put(xmlReplacement.getFile(), replacementDetails);
    }
    XmlReplacementDetails xmlReplacementDetails = new XmlReplacementDetails(
      xmlReplacement.getXpathExpression(), xmlReplacement.getAttributeName(),
        xmlReplacement.getReplacementBehavior());
    replacementDetails.put(xmlReplacementDetails, xmlReplacement.getValue());
  }
  for (Map.Entry<String, Map<XmlReplacementDetails, String>> replacement
    : replacements.entrySet())
  {
    replaceInXmlFile(replacement.getKey(), replacement.getValue());
  }
}

代码示例来源:origin: codehaus-cargo/cargo

/**
 * {@inheritDoc}
 */
@Override
public void replaceInXmlFile(XmlReplacement... xmlReplacements)
  throws CargoException
{
  Map<String, Map<XmlReplacementDetails, String>> replacements =
    new HashMap<String, Map<XmlReplacementDetails, String>>();
  for (XmlReplacement xmlReplacement : xmlReplacements)
  {
    Map<XmlReplacementDetails, String> replacementDetails =
      replacements.get(xmlReplacement.getFile());
    if (replacementDetails == null)
    {
      replacementDetails = new HashMap<XmlReplacementDetails, String>();
      replacements.put(xmlReplacement.getFile(), replacementDetails);
    }
    XmlReplacementDetails xmlReplacementDetails = new XmlReplacementDetails(
      xmlReplacement.getXpathExpression(), xmlReplacement.getAttributeName(),
        xmlReplacement.getReplacementBehavior());
    replacementDetails.put(xmlReplacementDetails, xmlReplacement.getValue());
  }
  for (Map.Entry<String, Map<XmlReplacementDetails, String>> replacement
    : replacements.entrySet())
  {
    replaceInXmlFile(replacement.getKey(), replacement.getValue());
  }
}

代码示例来源:origin: org.codehaus.cargo/cargo-daemon-client

+ escapeJson(xmlReplacement.getXpathExpression()) + "\","
+ "\"replacementBehavior\":\""
  + xmlReplacement.getReplacementBehavior() + "\"}");

代码示例来源:origin: codehaus-cargo/cargo

+ escapeJson(xmlReplacement.getXpathExpression()) + "\","
+ "\"replacementBehavior\":\""
  + xmlReplacement.getReplacementBehavior() + "\"}");

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