本文整理了Java中org.guvnor.common.services.shared.metadata.model.Metadata
类的一些代码示例,展示了Metadata
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Metadata
类的具体详情如下:
包路径:org.guvnor.common.services.shared.metadata.model.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();
}
内容来源于网络,如有侵权,请联系作者删除!