Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-2121

[Babel] Add config file for TOSCA type mappings

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • Dublin Release
    • None
    • A&AI Sprint 20

      Move hard-coded TOSCA types out of the Java code and into a configuration file.

      The abstract class org.onap.aai.babel.xml.generator.model.Model has a hard-coded Map named typeToModel which stores the mappings from the TOSCA type(s) to an internal Java bean.
      For example, the TOSCA type org.openecomp.resource.vf.allottedResource is mapped to an AllotedResource object.
      Similarly TOSCA types with a prefix of org.openecomp.cp are mapped to the LIntfWidget.

      These TOSCA type strings (currently all matching org.openecomp.*) are not configurable. Moving these mappings to an external configuration file will make it easier to modify and extend Babel's mapping functionality.

            mark.j.leonard mark.j.leonard
            mark.j.leonard mark.j.leonard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: