de.tudarmstadt.ukp.clarin.webanno.model.Project.getDescription()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(105)

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

Project.getDescription介绍

暂无

代码示例

代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-ui-core

private String getProjectDescription()
  {
    Project project = getProject();
    if (project != null) {
      if (StringUtils.isBlank(project.getDescription())) {
        return "Project has no description.";
      }
      else {
        return Processor.process(project.getDescription(), true);
      }
    }
    else {
      return "Please select a project from the drop-down list above.";
    }
  }
}

代码示例来源:origin: inception-project/inception

private String getProjectDescription()
  {
    Project project = getProject();
    if (project != null) {
      if (StringUtils.isBlank(project.getDescription())) {
        return "Project has no description.";
      }
      else {
        return Processor.process(project.getDescription(), true);
      }
    }
    else {
      return "Please select a project from the drop-down list above.";
    }
  }
}

代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-ui-dashboard

private String getProjectDescription()
  {
    Project project = Session.get().getMetaData(SessionMetaData.CURRENT_PROJECT);
    if (project != null) {
      return project.getDescription();
    }
    else {
      return "Please select a project.";
    }
  }
}

代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/de.tudarmstadt.ukp.clarin.webanno.project

private void exportProjectSettings(Project aProject, File aProjectSettings,
    File aExportTempDir) {
  de.tudarmstadt.ukp.clarin.webanno.model.export.Project exProjekt = new de.tudarmstadt.ukp.clarin.webanno.model.export.Project();
  exProjekt.setDescription(aProject.getDescription());
  exProjekt.setName(aProject.getName());
  exProjekt.setMode(aProject.getMode());

代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao

@Override
public void exportData(ProjectExportRequest aRequest, ExportedProject aExProject, File aStage)
  throws Exception
{
  Project project = aRequest.getProject();
  aExProject.setDescription(project.getDescription());
  // In older versions of WebAnno, the mode was an enum which was serialized as upper-case
  // during export but as lower-case in the database. This is compensating for this case.
  aExProject.setMode(StringUtils.upperCase(project.getMode(), Locale.US));
  aExProject.setScriptDirection(project.getScriptDirection());
  aExProject.setVersion(project.getVersion());
  aExProject.setDisableExport(project.isDisableExport());
  aExProject.setCreated(project.getCreated());
  aExProject.setUpdated(project.getUpdated());
}

代码示例来源:origin: webanno/webanno

@Override
public void exportData(ProjectExportRequest aRequest, ExportedProject aExProject, File aStage)
  throws Exception
{
  Project project = aRequest.getProject();
  aExProject.setDescription(project.getDescription());
  // In older versions of WebAnno, the mode was an enum which was serialized as upper-case
  // during export but as lower-case in the database. This is compensating for this case.
  aExProject.setMode(StringUtils.upperCase(project.getMode(), Locale.US));
  aExProject.setScriptDirection(project.getScriptDirection());
  aExProject.setVersion(project.getVersion());
  aExProject.setDisableExport(project.isDisableExport());
  aExProject.setCreated(project.getCreated());
  aExProject.setUpdated(project.getUpdated());
}

相关文章