private fun ensureTemplatedFieldsExist(template: BaseTemplate<*, *>, fields: Collection<String>)

Ensures that all fields in fields are defined by template

Parameters

template

the Template of the TemplatedNode where fields should be used

fields

a list of templated field names to check for existence

Throws

if any field is not defined by template