Class ConfigProcessor
java.lang.Object
org.openprovenance.prov.template.compiler.ConfigProcessor
- All Implemented Interfaces:
Constants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DescriptorUtilsstatic final com.fasterxml.jackson.databind.ObjectMapperstatic 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, 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, NON_NULLABLE_TEXT, NOT_NULL_METHOD, NULLABLE_TEXT, OPENPROVENANCE_COMPOSITE_BEAN_JSON, OUTPUTS, OUTPUTS_METHOD, PF, 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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGenerateClientAndProject(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) getBindingsSchema(String location) static voidintprocessTemplateGenerationConfig(String template_builder, ProvFactory pFactory) com.fasterxml.jackson.databind.JsonNode
-
Field Details
-
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
-
objectMapper
public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
ConfigProcessor
-
-
Method Details
-
readCompilerVersion
-
processTemplateGenerationConfig
-
generateJSonSchemaEnd
-
generateSQLEnd
-
generateDocumentationEnd
-
doGenerateProject
-
doGenerateClientAndProject
public void doGenerateClientAndProject(TemplatesCompilerConfig 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, 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
-
main
-