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

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

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

Project.<init>介绍

暂无

代码示例

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

public MonitoringDetailForm(String id)
  {
    super(id, new CompoundPropertyModel<Project>(new EntityModel<Project>(new Project())));
  }
}

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

public MonitoringDetailForm(String id)
  {
    super(id, new CompoundPropertyModel<>(new EntityModel<>(new Project())));
    
    add(new Label("name"));
  }
}

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

@Override
  public void onSubmit()
  {
    projectDetailForm.setModelObject(new Project());
    projectDetailForm.setVisible(true);
    ProjectSelectionForm.this.setModelObject(new SelectionModel());
    if (projectType != null) {
      projectType.setEnabled(true);
    }
  }
});

代码示例来源: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

@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: webanno/webanno

private SourceDocument makeSourceDocument(long aProjectId, long aDocumentId)
  {
    Project project = new Project();
    project.setId(aProjectId);
    
    SourceDocument doc = new SourceDocument();
    doc.setProject(project);
    doc.setId(aDocumentId);
    
    return doc;
  }
}

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

selectedProject.setObject(new Project());

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

private SourceDocument makeSourceDocument(long aProjectId, long aDocumentId)
  {
    Project project = new Project();
    project.setId(aProjectId);
    
    SourceDocument doc = new SourceDocument();
    doc.setProject(project);
    doc.setId(aDocumentId);
    
    return doc;
  }
}

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

selectedProject.setObject(new Project());

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

Project project = new Project();
project.setName(aName);
project.setMode(WebAnnoConst.PROJECT_TYPE_ANNOTATION);

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

Project project = new Project();
project.setName(aName);
project.setMode(WebAnnoConst.PROJECT_TYPE_ANNOTATION);

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

private SourceDocument makeSourceDocument(long aProjectId, long aDocumentId, String aDocName)
{
  Project project = new Project();
  project.setId(aProjectId);
  SourceDocument doc = new SourceDocument();
  doc.setProject(project);
  doc.setId(aDocumentId);
  doc.setName(aDocName);
  return doc;
}

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

@Before
public void setup() throws Exception
{
  if (jcas == null) {
    jcas = JCasFactory.createJCas();
  }
  else {
    jcas.reset();
  }
  
  project = new Project();
  project.setId(1l);
  project.setMode(PROJECT_TYPE_ANNOTATION);
  
  neLayer = new AnnotationLayer(NamedEntity.class.getName(), "NE", SPAN_TYPE, project, true,
      TOKENS);
  neLayer.setId(1l);
  featureSupportRegistry = new FeatureSupportRegistryImpl(asList());
}

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

project = new Project();
project.setId(1l);
project.setMode(PROJECT_TYPE_ANNOTATION);

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

Project project = new Project();
project.setState(ProjectState.NEW);
project.setId(1l);

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

@Before
public void setup() throws Exception
{
  if (jcas == null) {
    jcas = JCasFactory.createJCas();
  }
  else {
    jcas.reset();
  }
  
  username = "user";
  
  project = new Project();
  project.setId(1l);
  project.setMode(PROJECT_TYPE_ANNOTATION);
  
  document = new SourceDocument();
  document.setId(1l);
  document.setProject(project);
  
  neLayer = new AnnotationLayer(NamedEntity.class.getName(), "NE", SPAN_TYPE, project, true,
      TOKENS);
  neLayer.setId(1l);
  featureSupportRegistry = new FeatureSupportRegistryImpl(asList());
  
  behaviors = asList(new SpanStackingBehavior(), new SpanCrossSentenceBehavior(),
      new SpanAnchoringModeBehavior());
}

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

project = new Project();
project.setId(1l);
project.setMode(PROJECT_TYPE_ANNOTATION);

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

project = new Project();
project.setId(1l);
project.setMode(PROJECT_TYPE_ANNOTATION);

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

project = new Project();

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

selectedProject.setObject(new Project());

相关文章