Class DescriptorUtils
java.lang.Object
org.openprovenance.prov.template.descriptors.DescriptorUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckSqlInputs(Map<String, String> theInputs, TemplateBindingsSchema templateBindingsSchema) checkSqlOutputs(Map<String, String> theOutputs, TemplateBindingsSchema templateBindingsSchema) fieldNames(TemplateBindingsSchema descriptor) fieldNamesIterator(TemplateBindingsSchema descriptor) <T> TgetFromDescriptor(Descriptor descriptor, Function<AttributeDescriptor, T> af, Function<NameDescriptor, T> nf) getOutputSqlForeign(String key, TemplateBindingsSchema templateBindingsSchema) getOutputSqlTable(String key, TemplateBindingsSchema templateBindingsSchema) getSqlAlsoOutputs(String key, TemplateBindingsSchema templateBindingsSchema) getSqlNewInputs(String key, TemplateBindingsSchema templateBindingsSchema) getSqlType(String key, TemplateBindingsSchema templateBindingsSchema) booleanisCompulsoryInput(String key, TemplateBindingsSchema templateBindingsSchema) booleanisInput(String key, TemplateBindingsSchema templateBindingsSchema) booleanisOutput(String key, TemplateBindingsSchema templateBindingsSchema) booleanisOutputName(String key, TemplateBindingsSchema templateBindingsSchema) voidsetupDeserializer(com.fasterxml.jackson.databind.ObjectMapper om)
-
Constructor Details
-
DescriptorUtils
public DescriptorUtils()
-
-
Method Details
-
setupDeserializer
public void setupDeserializer(com.fasterxml.jackson.databind.ObjectMapper om) -
fieldNamesIterator
-
fieldNames
-
isOutput
-
isOutputName
-
getOutputSqlTable
public Optional<String> getOutputSqlTable(String key, TemplateBindingsSchema templateBindingsSchema) -
getOutputSqlForeign
public Optional<AttributeDescriptor.SqlForeign> getOutputSqlForeign(String key, TemplateBindingsSchema templateBindingsSchema) -
getSqlNewInputs
-
getSqlAlsoOutputs
-
isInput
-
isCompulsoryInput
-
getFromDescriptor
public <T> T getFromDescriptor(Descriptor descriptor, Function<AttributeDescriptor, T> af, Function<NameDescriptor, T> nf) -
getSqlType
-
checkSqlInputs
-
checkSqlOutputs
-