information-system-model-do.../src/main/java/org/gcube/informationsystem/utils/documentation/model/relations/RelationDocumentationGenera...

37 lines
1.1 KiB
Java
Raw Normal View History

2023-01-19 18:37:12 +01:00
package org.gcube.informationsystem.utils.documentation.model.relations;
2023-01-20 16:44:56 +01:00
import org.gcube.informationsystem.base.reference.AccessType;
2023-01-19 18:37:12 +01:00
import org.gcube.informationsystem.base.reference.relations.RelationElement;
import org.gcube.informationsystem.types.TypeMapper;
2023-01-20 10:27:07 +01:00
import org.gcube.informationsystem.types.reference.Type;
2023-01-19 18:37:12 +01:00
import org.gcube.informationsystem.utils.documentation.model.DocumentationGenerator;
import org.gcube.informationsystem.utils.documentation.rst.table.Table;
/**
* @author Luca Frosini (ISTI - CNR)
*/
2023-01-20 10:27:07 +01:00
public class RelationDocumentationGenerator extends DocumentationGenerator {
2023-01-19 18:37:12 +01:00
2023-01-20 10:27:07 +01:00
public RelationDocumentationGenerator(Type type) {
2023-01-20 16:44:56 +01:00
super(type, AccessType.RELATION, TypeMapper.getType(RelationElement.class));
2023-01-19 18:37:12 +01:00
}
2023-01-20 16:44:56 +01:00
protected RelationDocumentationGenerator(Type type, AccessType requiredType) {
super(type, requiredType);
}
protected RelationDocumentationGenerator(Type type, AccessType requiredType, String superClassToBeExcluded) {
super(type, requiredType, superClassToBeExcluded);
2023-01-19 18:37:12 +01:00
}
@Override
protected Table getTable() {
Table table = new Table();
2023-01-20 16:44:56 +01:00
table.appendRow(getPropertyFieldsHeadingRow());
2023-01-19 18:37:12 +01:00
return table;
}
}