Class ConfigProcessor
- java.lang.Object
-
- org.openprovenance.prov.template.compiler.ConfigProcessor
-
-
Field Summary
Fields Modifier and Type Field Description static DescriptorUtilsdescriptorUtilsstatic com.fasterxml.jackson.databind.ObjectMapperobjectMapperstatic com.squareup.javapoet.TypeVariableNametypeInstatic com.squareup.javapoet.TypeVariableNametypeOutstatic com.squareup.javapoet.TypeVariableNametypeOutput-
Fields 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, BEAN_CHECKER, BEAN_CHECKER2, BEAN_COMPLETER, BEAN_COMPLETER2, BEAN_ENACTOR, BEAN_ENACTOR2, BEAN_SQL_CONVERSION_METHOD, BEAN_VAR, BUILDER, BUILDER_CONFIGURATOR, BUILDER_INTERFACE, BUILDERS, CLIENT_PACKAGE, COMPOSITE, COMPOSITE_BEAN_COMPLETER2, COMPOSITE_ENACTOR_CONFIGURATOR, COMPOSITE_ENACTOR_CONFIGURATOR2, COMPULSORY_INPUTS, COMPULSORY_INPUTS_METHOD, CONVERTER_CONFIGURATOR, CSV_CONFIGURATOR, DELEGATOR, DELEGATOR_VAR, DOT_JAVA_EXTENSION, ELEMENTS, ENACTOR_CONFIGURATOR, ENACTOR_CONFIGURATOR2, ENACTOR_IMPLEMENTATION, 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_OUTPUT_PROCESSOR, INPUT_PREFIX, INPUT_PROCESSOR, INPUT_TABLE, INPUTS, INPUTS_METHOD, INSERT_ARRAY_SUFFIX, INSERT_PREFIX, IS_A, JAVADOC_NO_DOCUMENTATION, JAVADOC_NO_DOCUMENTATION_DEFAULT_TYPE, JSON_TEXT, LL_VAR, LOGGER_INTERFACE, M_VAR, NOT_NULL_METHOD, NULLABLE_TEXT, OPENPROVENANCE_COMPOSITE_BEAN_JSON, OUTPUTS, OUTPUTS_METHOD, PF, PREFIX_LOG_VAR, PROCESS_METHOD_NAME, PROCESSOR_ARGS_INTERFACE, PROCESSOR_CONVERTER, PROCESSOR_PROCESS_METHOD_NAME, PROPERTY_ORDER, PROPERTY_ORDER_CONFIGURATOR, PROPERTY_ORDER_METHOD, QUERY_INVOKER, QUERY_INVOKER2, REALISER, RECORD_2_RECORD_CONFIGURATOR, RECORD_CSV_PROCESSOR_METHOD, RECORDS_PROCESSOR_INTERFACE, RECORDS_VAR, RESOURCE_COMPOSITE_BEAN_JSON, SHARED_PREFIX, SQL_CONFIGURATOR, SQL_DATE, SQL_INSERT_CONFIGURATOR, SQL_INTERFACE, TEMPLATE_INVOKER, TESTER_FILE, TIMESTAMPTZ, TO_INPUTS, TYPE_CONVERTER, TYPEMANAGERS, VARIABLE_BEAN, WITH_MAP
-
-
Constructor Summary
Constructors Constructor Description ConfigProcessor(ProvFactory pFactory)
-
Method Summary
Modifier and Type Method Description voiddoGenerateClientAndProject(TemplatesCompilerConfig configs, Locations locations, String cli_lib, String cli_dir, String cli_src_dir)voiddoGenerateProject(TemplatesCompilerConfig 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, TemplatesCompilerConfig configs, Locations locations, String cli_src_dir, String l2p_src_dir, String cli_webjar_dir)voiddoGenerateServerForEntry(SimpleTemplateCompilerConfig config, TemplatesCompilerConfig configs, Locations locations, String cli_src_dir, String l2p_src_dir, ProvFactory pFactory, String cli_webjar_dir)voiddoGenerateServerForEntry1(Document doc, SimpleTemplateCompilerConfig config, TemplatesCompilerConfig configs, Locations locations, String cli_src_dir, String l2p_src_dir, String cli_webjar_dir)booleangenerate(Document doc, Locations locations, String templateName, String packageName, String cli_src_dir, String l2p_src_dir, String resource, boolean sbean, String logger, 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, TemplatesCompilerConfig configs)voidgenerateDocumentationEnd(TemplatesCompilerConfig configs, String cli_webjar_dir)voidgenerateJSonSchemaEnd(TemplatesCompilerConfig configs, String cli_src_dir)voidgenerateSQLEnd(TemplatesCompilerConfig configs, String cli_src_dir)TemplateBindingsSchemagetBindingsSchema(String location)CompilerJsonSchemagetCompilerJsonSchema()intprocessTemplateGenerationConfig(String template_builder, ProvFactory pFactory)StringreadCompilerVersion()DocumentreadDocumentFromFile(SimpleTemplateCompilerConfig config)com.fasterxml.jackson.databind.JsonNodereadTree(File file)
-
-
-
Field Detail
-
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
-
descriptorUtils
public static final DescriptorUtils descriptorUtils
-
objectMapper
public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
ConfigProcessor
public ConfigProcessor(ProvFactory pFactory)
-
-
Method Detail
-
readCompilerVersion
public String readCompilerVersion()
-
processTemplateGenerationConfig
public int processTemplateGenerationConfig(String template_builder, ProvFactory pFactory)
-
generateJSonSchemaEnd
public void generateJSonSchemaEnd(TemplatesCompilerConfig configs, String cli_src_dir)
-
generateSQLEnd
public void generateSQLEnd(TemplatesCompilerConfig configs, String cli_src_dir)
-
generateDocumentationEnd
public void generateDocumentationEnd(TemplatesCompilerConfig configs, String cli_webjar_dir)
-
doGenerateProject
public void doGenerateProject(TemplatesCompilerConfig 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)
-
doGenerateClientAndProject
public void doGenerateClientAndProject(TemplatesCompilerConfig configs, Locations locations, String cli_lib, String cli_dir, String cli_src_dir)
-
readTree
public com.fasterxml.jackson.databind.JsonNode readTree(File file) throws IOException
- Throws:
IOException
-
getBindingsSchema
public TemplateBindingsSchema getBindingsSchema(String location)
-
readDocumentFromFile
public Document readDocumentFromFile(SimpleTemplateCompilerConfig config) throws ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
-
doGenerateServerForEntry
public void doGenerateServerForEntry(SimpleTemplateCompilerConfig config, TemplatesCompilerConfig 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, TemplatesCompilerConfig configs, Locations locations, String cli_src_dir, String l2p_src_dir, String cli_webjar_dir)
-
doGenerateServerForEntry1
public void doGenerateServerForEntry1(Document doc, SimpleTemplateCompilerConfig config, TemplatesCompilerConfig 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, boolean sbean, String logger, 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, TemplatesCompilerConfig configs)
-
getCompilerJsonSchema
public CompilerJsonSchema getCompilerJsonSchema()
-
-