org.guvnor.common.services.shared.metadata.model.Metadata类的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(129)

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

Metadata介绍

暂无

代码示例

代码示例来源:origin: org.guvnor/guvnor-services-backend

public Metadata build() {
    return new Metadata(path,
              realPath,
              checkinComment,
              lastContributor,
              creator,
              lastModified,
              dateCreated,
              subject,
              type,
              externalRelation,
              externalSource,
              description,
              tags,
              discussion,
              version,
              lockInfo,
              generated);
  }
}

代码示例来源:origin: org.uberfire/uberfire-services-api

@Override
  public int hashCode() {
    int result = metadata != null ? metadata.hashCode() : 0;
    result = ~~result;
    result = 31 * result + (projectName != null ? projectName.hashCode() : 0);
    result = ~~result;
    return result;
  }
}

代码示例来源:origin: org.guvnor/guvnor-services-backend

@Override
public List<DiscussionRecord> discussion() {
  return metadata.getDiscussion();
}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget

public void onAddTags( String text ) {
  if (text != null) {
    String[] tags = text.split( " " );
    for (String tag : tags) {
      if (!data.getTags().contains( tag )) {
        data.addTag( tag );
        view.addTag( tag, readOnly );
      }
    }
  }
}

代码示例来源:origin: org.kie.workbench.widgets/kie-wb-metadata-widget

void onLockChange( @Observes LockInfo lockInfo ) {                
  if ( overview != null && overview.getMetadata() != null && 
      lockInfo.getFile().equals( overview.getMetadata().getPath() ) ) {
    
    overview.getMetadata().setLockInfo( lockInfo );
    view.setLockStatus( lockInfo );
  }
}

代码示例来源:origin: org.guvnor/guvnor-services-api

@Test
public void checkLockInfoDoesNotAffectHashCode() {
  this.metadata = new Metadata(path,
                 path,
                 "checkinComment",
                 false);
  final int originalHashCode = metadata.hashCode();
  metadata.setLockInfo(new LockInfo(true,
                   "admin",
                   path));
         metadata.hashCode());

代码示例来源:origin: org.uberfire/uberfire-services-backend

@Test
public void testSimple() throws Exception {
  Metadata metadata = service.create();
  assertNotNull(metadata);
  assertNotNull(metadata.getTags());
  assertNotNull(metadata.getDiscussion());
  assertNotNull(metadata.getVersion());
}

代码示例来源:origin: org.guvnor/guvnor-services-backend

@Test
public void testGeneratedAttributes() {
  when(generatedFileAttributes.isGenerated()).thenReturn(true);
  when(generatedAttributesView.readAttributes()).thenReturn(generatedFileAttributes);
  Metadata metadata = service.create();
  assertTrue(metadata.isGenerated());
}

代码示例来源:origin: org.guvnor/guvnor-services-backend

@Override
public List<String> tags() {
  return metadata.getTags();
}

代码示例来源:origin: org.guvnor/guvnor-services-api

@Override
public boolean equals(Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  Overview overview = (Overview) o;
  if (metadata != null ? !metadata.equals(overview.metadata) : overview.metadata != null) {
    return false;
  }
  if (projectName != null ? !projectName.equals(overview.projectName) : overview.projectName != null) {
    return false;
  }
  return true;
}

代码示例来源:origin: org.uberfire/uberfire-services-api

@Test
public void checkLockInfoDoesNotAffectHashCode() {
  this.metadata = new Metadata(path,
                 path,
                 "checkinComment",
                 false);
  final int originalHashCode = metadata.hashCode();
  metadata.setLockInfo(new LockInfo(true,
                   "admin",
                   path));
         metadata.hashCode());

代码示例来源:origin: org.guvnor/guvnor-services-backend

@Test
public void testSimple() throws Exception {
  Metadata metadata = service.create();
  assertNotNull(metadata);
  assertNotNull(metadata.getTags());
  assertNotNull(metadata.getDiscussion());
  assertNotNull(metadata.getVersion());
}

代码示例来源:origin: org.uberfire/uberfire-services-backend

@Test
public void testGeneratedAttributes() {
  when(generatedFileAttributes.isGenerated()).thenReturn(true);
  when(generatedAttributesView.readAttributes()).thenReturn(generatedFileAttributes);
  Metadata metadata = service.create();
  assertTrue(metadata.isGenerated());
}

代码示例来源:origin: kiegroup/appformer

@Override
public List<String> tags() {
  return metadata.getTags();
}

代码示例来源:origin: org.uberfire/uberfire-services-api

@Override
public boolean equals(Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  Overview overview = (Overview) o;
  if (metadata != null ? !metadata.equals(overview.metadata) : overview.metadata != null) {
    return false;
  }
  if (projectName != null ? !projectName.equals(overview.projectName) : overview.projectName != null) {
    return false;
  }
  return true;
}

代码示例来源:origin: kiegroup/appformer

@Test
public void checkLockInfoDoesNotAffectHashCode() {
  this.metadata = new Metadata(path,
                 path,
                 "checkinComment",
                 false);
  final int originalHashCode = metadata.hashCode();
  metadata.setLockInfo(new LockInfo(true,
                   "admin",
                   path));
         metadata.hashCode());

代码示例来源:origin: kiegroup/appformer

public Metadata build() {
    return new Metadata(path,
              realPath,
              checkinComment,
              lastContributor,
              creator,
              lastModified,
              dateCreated,
              subject,
              type,
              externalRelation,
              externalSource,
              description,
              tags,
              discussion,
              version,
              lockInfo,
              generated);
  }
}

代码示例来源:origin: kiegroup/appformer

@Test
public void testSimple() throws Exception {
  Metadata metadata = service.create();
  assertNotNull(metadata);
  assertNotNull(metadata.getTags());
  assertNotNull(metadata.getDiscussion());
  assertNotNull(metadata.getVersion());
}

代码示例来源:origin: org.guvnor/guvnor-services-api

@Override
  public int hashCode() {
    int result = metadata != null ? metadata.hashCode() : 0;
    result = ~~result;
    result = 31 * result + (projectName != null ? projectName.hashCode() : 0);
    result = ~~result;
    return result;
  }
}

代码示例来源:origin: kiegroup/appformer

@Override
public List<DiscussionRecord> discussion() {
  return metadata.getDiscussion();
}

相关文章