Class ConfigProcessor
java.lang.Object
org.openprovenance.prov.template.compiler.ConfigProcessor
- All Implemented Interfaces:
org.openprovenance.prov.template.compiler.common.Constants
public class ConfigProcessor
extends Object
implements org.openprovenance.prov.template.compiler.common.Constants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.squareup.javapoet.TypeNamestatic final com.squareup.javapoet.TypeNamestatic final com.squareup.javapoet.TypeNamestatic final DescriptorUtilsstatic final com.fasterxml.jackson.databind.ObjectMapperstatic final com.squareup.javapoet.TypeVariableNamestatic final com.squareup.javapoet.TypeVariableNamestatic final com.squareup.javapoet.TypeVariableNamestatic final com.squareup.javapoet.TypeVariableNameFields inherited from interface org.openprovenance.prov.template.compiler.common.Constants
__NODES_FIELD, A_ARGS_BEAN_CONVERTER, A_ARGS_CSV_CONVERTER, A_BEAN_SQL_CONVERTER, A_RECORD_BEAN_CONVERTER, A_RECORD_CSV_CONVERTER, A_RECORD_INPUTS_CONVERTER, A_RECORD_SQL_CONVERTER, ADD_ELEMENTS, ARECORD_VAR, ARGS_CSV_CONVERSION_METHOD, ARGS2RECORD_CONVERTER, BASETABLE_KEY_COLUMN, BEAN_CHECKER, BEAN_CHECKER2, BEAN_COMPLETER, BEAN_COMPLETER2, BEAN_COMPLETER3, BEAN_ENACTOR, BEAN_ENACTOR2, BEAN_ENACTOR2_COMPOSITE, BEAN_ENACTOR2_COMPOSITE_WP, BEAN_ENACTOR2_WP, BEAN_PROCESSOR, BEAN_SQL_CONVERSION_METHOD, BEAN_VAR, BUILDER, BUILDER_CONFIGURATOR, BUILDER_INTERFACE, BUILDERS, CLIENT_PACKAGE, COMPOSITE, COMPOSITE_BEAN_COMPLETER2, COMPOSITE_ENACTOR_CONFIGURATOR, COMPOSITE_ENACTOR_CONFIGURATOR2, COMPOSITE_TABLE_CONFIGURATOR, COMPULSORY_INPUTS, COMPULSORY_INPUTS_METHOD, CONFIGURATOR, CONVERTER_CONFIGURATOR, CREATED_AT_COLUMN, CSV_CONFIGURATOR, DELEGATOR, DELEGATOR_VAR, DOCUMENT_BUILDER_DISPATCHER, DOT_JAVA_EXTENSION, ELEMENTS, ENACTOR_CONFIGURATOR, ENACTOR_CONFIGURATOR2, ENACTOR_IMPLEMENTATION, FOREIGN_TABLES, GENERATED_VAR_PREFIX, GENERIC_POST_AND_RETURN, GET_BUILDERS_METHOD, GET_NAME, GET_NODES_METHOD, GET_SUCCESSOR_METHOD, GET_TYPED_SUCCESSOR_METHOD, GETTER, IN_INTEGRATOR, INIT, INITIALIZE_BEAN_TABLE, INPUT, INPUT_ID, INPUT_OUTPUT_PROCESSOR, INPUT_PREFIX, INPUT_PROCESSOR, INPUT_TABLE, INPUTS, INPUTS_CONFIGURATOR, INPUTS_METHOD, INSERT_ARRAY_SUFFIX, INSERT_COMPOSITE_AND_LINKER_SUFFIX, INSERT_PREFIX, INSERTED_CONSISTS_OF, IS_A, JAVADOC_NO_DOCUMENTATION, JAVADOC_NO_DOCUMENTATION_DEFAULT_TYPE, JSON_TEXT, LINKER_SUFFIX, LL_VAR, LOGGER, LOGGER_INTERFACE, M_VAR, NAMED_PREFIX, NON_NULLABLE_TEXT, NOT_NULL_METHOD, NULLABLE_TEXT, OPENPROVENANCE_COMPOSITE_BEAN_JSON, OUTPUT, OUTPUTS, OUTPUTS_CONFIGURATOR, OUTPUTS_METHOD, PF, POST_PROCESS_METHOD_NAME, principalVar, PROCESS_METHOD_NAME, PROCESSOR, PROCESSOR_ARGS_INTERFACE, PROCESSOR_CONVERTER, PROCESSOR_PROCESS_METHOD_NAME, PROPERTY_COLUMN, PROPERTY_MAP, PROPERTY_ORDER, PROPERTY_ORDER_CONFIGURATOR, PROPERTY_ORDER_METHOD, QUERY_INVOKER, QUERY_INVOKER2, QUERY_INVOKER2WP, REALISER, RECORD_2_RECORD_CONFIGURATOR, RECORD_CSV_PROCESSOR_METHOD, RECORDS_PROCESSOR_INTERFACE, RECORDS_VAR, RESOURCE_COMPOSITE_BEAN_JSON, SHARED_PREFIX, SQL_BEAN_COMPLETER, SQL_BEAN_COMPLETER3, SQL_BEAN_COMPLETER4, SQL_BEAN_ENACTOR, SQL_BEAN_ENACTOR3, SQL_BEAN_ENACTOR4, SQL_COMPOSITE_BEAN_COMPLETER, SQL_COMPOSITE_BEAN_COMPLETER3, SQL_COMPOSITE_BEAN_COMPLETER4, SQL_COMPOSITE_BEAN_ENACTOR, SQL_COMPOSITE_BEAN_ENACTOR3, SQL_COMPOSITE_BEAN_ENACTOR4, SQL_COMPOSITE_ENACTOR_CONFIGURATOR3, SQL_COMPOSITE_ENACTOR_CONFIGURATOR4, SQL_COMPOSITE_ENACTOR_IMPLEMENTATION, SQL_COMPOSITE_ENACTOR_IMPLEMENTATION3, SQL_COMPOSITE_ENACTOR_IMPLEMENTATION4, SQL_CONFIGURATOR, SQL_DATE, SQL_ENACTOR_CONFIGURATOR3, SQL_ENACTOR_CONFIGURATOR4, SQL_ENACTOR_IMPLEMENTATION, SQL_ENACTOR_IMPLEMENTATION3, SQL_ENACTOR_IMPLEMENTATION4, SQL_INSERT_CONFIGURATOR, SQL_INTERFACE, SUB_PACKAGE_ACCESS_CONTROL, SUB_PACKAGE_CLIENT, SUB_PACKAGE_COMMON, SUB_PACKAGE_INTEGRATOR, SUB_PACKAGE_LOGGER, SUFFIX_TYPE, TABLE_CONFIGURATOR, TABLE_NAME_COLUMN, TEMPLATE_BUILDER_VARIABLE, TEMPLATE_BUILDERS, TEMPLATE_INVOKER, TESTER_FILE, THE_PRODUCT, THE_RECORD, TIMESTAMPTZ, TO_INPUTS, TYPE_CONVERTER, TYPEMANAGERS, VAR_CSV, VAR_CSV_CONVERTER, VAR_ELEMENT, VAR_OBJECTS, VARIABLE_BEAN, WITH_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildJoinTable(String templateName, TemplateBindingsSchema bindingsSchema) voiddoGenerateClientAndProject(TemplatesProjectConfiguration configs, Locations locations, String cli_lib, String cli_dir, String cli_src_dir) voiddoGenerateProject(TemplatesProjectConfiguration configs, Locations locations, String root_dir, String cli_lib, String l2p_lib, String l2p_dir, String l2p_src_dir, String l2p_test_src_dir, String cli_test_src_dir, String cli_webjar_dir) voiddoGenerateServerForEntry(CompositeTemplateCompilerConfig compositeTemplateCompilerConfig, SimpleTemplateCompilerConfig config, TemplatesProjectConfiguration configs, Locations locations, String cli_src_dir, String l2p_src_dir, String cli_webjar_dir) voiddoGenerateServerForEntry(SimpleTemplateCompilerConfig config, TemplatesProjectConfiguration configs, Locations locations, String cli_src_dir, String l2p_src_dir, ProvFactory pFactory, String cli_webjar_dir) voiddoGenerateServerForEntry1(Document doc, SimpleTemplateCompilerConfig config, TemplatesProjectConfiguration configs, Locations locations, String cli_src_dir, String l2p_src_dir, String cli_webjar_dir) voidbooleangenerate(Document doc, Locations locations, String templateName, String packageName, String cli_src_dir, String l2p_src_dir, String resource, String jsonschema, String documentation, com.fasterxml.jackson.databind.JsonNode bindings_schema, TemplateBindingsSchema bindingsSchema, Map<String, Map<String, String>> sqlTables, String cli_webjar_dir, boolean inComposition, List<String> sharing, String consistsOf, TemplatesProjectConfiguration configs) voidgenerateDocumentationEnd(TemplatesProjectConfiguration configs, String cli_webjar_dir) voidgenerateJSonSchemaEnd(TemplatesProjectConfiguration configs, String cli_src_dir) voidgenerateSQLEnd(TemplatesProjectConfiguration configs, String cli_src_dir) getBindingsSchema(String location) static voidintprocessTemplateGenerationConfig(String template_builder, String inputBaseDir, String outputBaseDir, ProvFactory pFactory) com.fasterxml.jackson.databind.JsonNode
-
Field Details
-
typeResult
public static final com.squareup.javapoet.TypeVariableName typeResult -
typeOutput
public static final com.squareup.javapoet.TypeVariableName typeOutput -
typeOut
public static final com.squareup.javapoet.TypeVariableName typeOut -
typeIn
public static final com.squareup.javapoet.TypeVariableName typeIn -
biconsumerTypeOut
public static final com.squareup.javapoet.TypeName biconsumerTypeOut -
consumerIn
public static final com.squareup.javapoet.TypeName consumerIn -
biconsumerTypeIn
public static final com.squareup.javapoet.TypeName biconsumerTypeIn -
descriptorUtils
-
objectMapper
public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
ConfigProcessor
-
-
Method Details
-
processTemplateGenerationConfig
public int processTemplateGenerationConfig(String template_builder, String inputBaseDir, String outputBaseDir, ProvFactory pFactory) -
getReferencedSqlTables
-
findSqlTableReferences
-
generateJSonSchemaEnd
-
generateSQLEnd
-
generateDocumentationEnd
-
doGenerateProject
-
doGenerateClientAndProject
public void doGenerateClientAndProject(TemplatesProjectConfiguration configs, Locations locations, String cli_lib, String cli_dir, String cli_src_dir) -
readTree
- Throws:
IOException
-
getBindingsSchema
-
readDocumentFromFile
public Document readDocumentFromFile(SimpleTemplateCompilerConfig config) throws ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, FileNotFoundException -
doGenerateServerForEntry
public void doGenerateServerForEntry(SimpleTemplateCompilerConfig config, TemplatesProjectConfiguration configs, Locations locations, String cli_src_dir, String l2p_src_dir, ProvFactory pFactory, String cli_webjar_dir) -
doGenerateServerForEntry
public void doGenerateServerForEntry(CompositeTemplateCompilerConfig compositeTemplateCompilerConfig, SimpleTemplateCompilerConfig config, TemplatesProjectConfiguration configs, Locations locations, String cli_src_dir, String l2p_src_dir, String cli_webjar_dir) -
doGenerateServerForEntry1
public void doGenerateServerForEntry1(Document doc, SimpleTemplateCompilerConfig config, TemplatesProjectConfiguration configs, Locations locations, String cli_src_dir, String l2p_src_dir, String cli_webjar_dir) -
generate
public boolean generate(Document doc, Locations locations, String templateName, String packageName, String cli_src_dir, String l2p_src_dir, String resource, String jsonschema, String documentation, com.fasterxml.jackson.databind.JsonNode bindings_schema, TemplateBindingsSchema bindingsSchema, Map<String, Map<String, String>> sqlTables, String cli_webjar_dir, boolean inComposition, List<String> sharing, String consistsOf, TemplatesProjectConfiguration configs) -
getInputOutputMaps
-
buildJoinTable
-
getCompilerJsonSchema
-
main
-