Added IsIdenfifiedBy consists of relation (was removed from IS Model)
This commit is contained in:
parent
01ee4939a2
commit
6a7b95b9a2
|
@ -0,0 +1,35 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.resourcemanagement.model.impl.relations.consistsof;
|
||||
|
||||
import org.gcube.informationsystem.model.impl.relations.ConsistsOfImpl;
|
||||
import org.gcube.informationsystem.model.reference.entities.Facet;
|
||||
import org.gcube.informationsystem.model.reference.entities.Resource;
|
||||
import org.gcube.informationsystem.model.reference.properties.PropagationConstraint;
|
||||
import org.gcube.resourcemanagement.model.reference.relations.consistsof.IsIdentifiedBy;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
@JsonTypeName(value=IsIdentifiedBy.NAME)
|
||||
public class IsIdentifiedByImpl<S extends Resource, T extends Facet> extends
|
||||
ConsistsOfImpl<S, T> implements IsIdentifiedBy<S, T> {
|
||||
|
||||
/**
|
||||
* Generated Serial Version UID
|
||||
*/
|
||||
private static final long serialVersionUID = 8043666054054911145L;
|
||||
|
||||
protected IsIdentifiedByImpl(){
|
||||
super();
|
||||
}
|
||||
|
||||
public IsIdentifiedByImpl(S source, T target,
|
||||
PropagationConstraint propagationConstraint) {
|
||||
super(source, target, propagationConstraint);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package org.gcube.resourcemanagement.model.reference.relations.consistsof;
|
||||
|
||||
import org.gcube.informationsystem.model.reference.entities.Facet;
|
||||
import org.gcube.informationsystem.model.reference.entities.Resource;
|
||||
import org.gcube.informationsystem.model.reference.relations.ConsistsOf;
|
||||
import org.gcube.resourcemanagement.model.impl.relations.consistsof.IsIdentifiedByImpl;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#isIdentifiedBy
|
||||
*/
|
||||
@JsonDeserialize(as=IsIdentifiedByImpl.class)
|
||||
public interface IsIdentifiedBy<S extends Resource, T extends Facet>
|
||||
extends ConsistsOf<S, T> {
|
||||
|
||||
public static final String NAME = "IsIdentifiedBy"; //IsIdentifiedBy.class.getSimpleName();
|
||||
|
||||
}
|
Loading…
Reference in New Issue