information-system-model/src/main/java/org/gcube/informationsystem/context/reference/relations/IsParentOf.java

39 lines
1.2 KiB
Java

/**
*
*/
package org.gcube.informationsystem.context.reference.relations;
import org.gcube.informationsystem.base.reference.relations.BaseRelation;
import org.gcube.informationsystem.context.impl.relations.IsParentOfImpl;
import org.gcube.informationsystem.context.reference.entities.Context;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/**
* @author Luca Frosini (ISTI - CNR)
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#isParentOf
*/
@JsonDeserialize(as = IsParentOfImpl.class)
public interface IsParentOf extends BaseRelation<Context,Context> {
public static final String NAME = "IsParentOf"; //IsParentOf.class.getSimpleName();
@JsonIgnoreProperties({Context.PARENT_PROPERTY, Context.CHILDREN_PROPERTY})
@JsonGetter(value = SOURCE_PROPERTY)
public Context getSource();
@JsonIgnore
public void setSource(Context source);
@JsonIgnoreProperties({Context.PARENT_PROPERTY, Context.CHILDREN_PROPERTY})
@JsonGetter(value = TARGET_PROPERTY)
public Context getTarget();
@JsonIgnore
public void setTarget(Context target);
}