39 lines
979 B
Java
39 lines
979 B
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.informationsystem.utils;
|
|
|
|
import org.gcube.informationsystem.base.reference.entities.EntityElement;
|
|
import org.gcube.informationsystem.base.reference.properties.PropertyElement;
|
|
import org.gcube.informationsystem.base.reference.relations.RelationElement;
|
|
import org.gcube.informationsystem.utils.discovery.SchemaAction;
|
|
|
|
/**
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
*/
|
|
class ElementMappingAction implements SchemaAction {
|
|
|
|
public ElementMappingAction(){
|
|
|
|
}
|
|
|
|
@Override
|
|
public <P extends PropertyElement> void managePropertyClass(Class<P> e)
|
|
throws Exception {
|
|
ElementMapper.registerSubtype(e);
|
|
}
|
|
|
|
@Override
|
|
public <E extends EntityElement> void manageEntityClass(Class<E> e)
|
|
throws Exception {
|
|
ElementMapper.registerSubtype(e);
|
|
}
|
|
|
|
@Override
|
|
public <R extends RelationElement<? extends EntityElement, ? extends EntityElement>> void manageRelationClass(
|
|
Class<R> r) throws Exception {
|
|
ElementMapper.registerSubtype(r);
|
|
}
|
|
|
|
}
|