本文整理了Java中de.tudarmstadt.ukp.clarin.webanno.model.Project.setName()
方法的一些代码示例,展示了Project.setName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.setName()
方法的具体详情如下:
包路径:de.tudarmstadt.ukp.clarin.webanno.model.Project
类名称:Project
方法名:setName
暂无
代码示例来源:origin: webanno/webanno
projectName = copyProjectName(projectName);
project.setName(projectName);
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao
projectName = copyProjectName(projectName);
project.setName(projectName);
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-remote
project.setName(aName);
projectRepository.createProject(project);
annotationService.initializeProject(project);
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/de.tudarmstadt.ukp.clarin.webanno.brat
/**
* create new {@link Project} from the
* {@link de.tudarmstadt.ukp.clarin.webanno.model.export.Project} model
*
* @throws IOException
*/
public static Project createProject(
de.tudarmstadt.ukp.clarin.webanno.model.export.Project aProject,
RepositoryService aRepository)
throws IOException
{
String username = SecurityContextHolder.getContext().getAuthentication().getName();
User user = aRepository.getUser(username);
Project project = new Project();
String projectName = aProject.getName();
if (aRepository.existsProject(projectName)) {
projectName = copyProjectName(aRepository, projectName);
}
project.setName(projectName);
project.setDescription(aProject.getDescription());
project.setMode(aProject.getMode());
aRepository.createProject(project, user);
return project;
}
代码示例来源:origin: webanno/webanno
project.setName(aName);
projectRepository.createProject(project);
annotationService.initializeProject(project);
代码示例来源:origin: webanno/webanno
@Before
public void setUp() throws Exception
{
initMocks(this);
project = new Project();
project.setId(1l);
project.setName("Test Project");
project.setMode(WebAnnoConst.PROJECT_TYPE_ANNOTATION);
workFolder = tempFolder.newFolder();
when(annotationService.listAnnotationLayer(any())).thenReturn(layers());
sut = new LayerExporter(annotationService);
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-remote
project.setName(aName);
project.setMode(WebAnnoConst.PROJECT_TYPE_ANNOTATION);
project.setScriptDirection(ScriptDirection.LTR);
代码示例来源:origin: webanno/webanno
project.setName(aName);
project.setMode(WebAnnoConst.PROJECT_TYPE_ANNOTATION);
project.setScriptDirection(ScriptDirection.LTR);
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/de.tudarmstadt.ukp.clarin.webanno.project
project.setName(ProjectUtil.validName(project.getName()));
内容来源于网络,如有侵权,请联系作者删除!