Fixed Type
This commit is contained in:
parent
4a7bc55991
commit
2b5b897dc0
|
@ -201,12 +201,12 @@ public class TypeImpl implements Type {
|
|||
}
|
||||
|
||||
@JsonGetter(value = VERSION_PROPERTY)
|
||||
protected String getVersionAsString() {
|
||||
public String getVersionAsString() {
|
||||
return version.toString();
|
||||
}
|
||||
|
||||
@JsonSetter(value = VERSION_PROPERTY)
|
||||
protected void setVersion(String version) {
|
||||
public void setVersion(String version) {
|
||||
this.version = new TypeVersion(version);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@ package org.gcube.informationsystem.types.reference;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.gcube.com.fasterxml.jackson.annotation.JsonGetter;
|
||||
import org.gcube.com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.gcube.com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
||||
import org.gcube.informationsystem.types.annotations.Abstract;
|
||||
|
@ -30,10 +32,18 @@ public interface Type extends IdentifiableElement {
|
|||
|
||||
public String getDescription();
|
||||
|
||||
@JsonIgnore
|
||||
public TypeVersion getVersion();
|
||||
|
||||
@JsonGetter(value = VERSION_PROPERTY)
|
||||
public String getVersionAsString();
|
||||
|
||||
@JsonIgnore
|
||||
public Map<TypeVersion, String> getChangelog();
|
||||
|
||||
@JsonGetter(value = CHANGELOG_PROPERTY)
|
||||
public Map<String, String> getChangelogwithVersionAsString();
|
||||
|
||||
public boolean isAbstract();
|
||||
|
||||
public Set<String> getSuperClasses();
|
||||
|
|
Loading…
Reference in New Issue