org.apache.karaf.features.Feature.getDescription()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(136)

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

Feature.getDescription介绍

暂无

代码示例

代码示例来源:origin: apache/karaf

@Override
public String getDescription() {
  return this.feature.getDescription();
}

代码示例来源:origin: org.opendaylight.controller/config-persister-feature-adapter

/**
 * @return
 * @see org.apache.karaf.features.Feature#getDescription()
 */
@Override
public String getDescription() {
  return feature.getDescription();
}

代码示例来源:origin: apache/karaf

protected void add(List<Candidate> candidates, Feature feature) {
  candidates.add(new Candidate(
      feature.getName(), feature.getName(), null,
      feature.getDescription(), null, null, true));
}

代码示例来源:origin: org.apache.karaf.features/org.apache.karaf.features.command

protected void add(List<Candidate> candidates, Feature feature) {
  candidates.add(new Candidate(
      feature.getName(), feature.getName(), null,
      feature.getDescription(), null, null, true));
}

代码示例来源:origin: openhab/openhab-core

private Extension getExtension(Feature feature) {
  String name = getName(feature.getName());
  String type = getType(feature.getName());
  String extId = type + "-" + name;
  String label = feature.getDescription();
  String version = feature.getVersion();
  String link = null;
  if (type.equals("binding")) {
    link = "https://www.openhab.org/addons/bindings/" + name + "/";
  } else if (type.equals("action")) {
    link = "https://www.openhab.org/addons/actions/" + name + "/";
  } else if (type.equals("persistence")) {
    link = "https://www.openhab.org/addons/persistence/" + name + "/";
  }
  boolean installed = featuresService.isInstalled(feature);
  return new Extension(extId, type, label, version, link, installed);
}

代码示例来源:origin: apache/karaf

if (feature.getDescription() != null) {
  System.out.println("Description:");
  System.out.println(INDENT + feature.getDescription());

代码示例来源:origin: org.apache.karaf.features/org.apache.karaf.features.command

if (feature.getDescription() != null) {
  System.out.println("Description:");
  System.out.println(INDENT + feature.getDescription());

代码示例来源:origin: apache/karaf

featuresService.getState(f.getId()),
    r.getName(),
    f.getDescription());
if (showBlacklisted) {
  row.addContent(f.isBlacklisted() ? "yes" : "no");

代码示例来源:origin: org.apache.karaf.features/org.apache.karaf.features.command

featuresService.getState(f.getId()),
    r.getName(),
    f.getDescription());
if (showBlacklisted) {
  row.addContent(f.isBlacklisted() ? "yes" : "no");

相关文章