gpt4 book ai didi

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

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

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

XmlReplacement.getAttributeName介绍

暂无

代码示例

代码示例来源: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.getAttributeName()) + "\","
+ "\"file\":\"" + escapeJson(xmlReplacement.getFile()) + "\","
+  "\"value\":\"" + escapeJson(xmlReplacement.getValue()) + "\","

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

+ escapeJson(xmlReplacement.getAttributeName()) + "\","
+ "\"file\":\"" + escapeJson(xmlReplacement.getFile()) + "\","
+  "\"value\":\"" + escapeJson(xmlReplacement.getValue()) + "\","

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