hudson.model.Item.getDisplayName()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(95)

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

Item.getDisplayName介绍

[英]Gets the human readable short name of this item.

This method should try to return a short concise human readable string that describes this item. The string need not be unique.

The returned string should not include the display names of #getParent().
[中]获取此项的人类可读的短名称。
此方法应尝试返回描述此项的简短易读字符串。字符串不必是唯一的。
返回的字符串不应包括#getParent()的显示名称。

代码示例

代码示例来源:origin: jenkinsci/jenkins

while (true) {
  if (buf.length()>0) buf.insert(0,separationString);
  buf.insert(0,useDisplayName ? i.getDisplayName() : i.getName());
  ItemGroup gr = i.getParent();

代码示例来源:origin: org.jenkins-ci.plugins/security-inspector

@Override
public String getReportTargetName() {
  return job4report.getDisplayName();
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

while (true) {
  if (buf.length()>0) buf.insert(0,separationString);
  buf.insert(0,useDisplayName ? i.getDisplayName() : i.getName());
  ItemGroup gr = i.getParent();

相关文章