shiroyuki / Imagination

Java Beans-inspired Dependency Injection Framework for Python
https://imagination.readthedocs.io/en/latest/
4 stars 2 forks source link

Support a list, tuple or set in the XML schema #12

Closed shiroyuki closed 11 years ago

shiroyuki commented 12 years ago

Extending from the defined/documented schema, let's define DATA_TYPE as equivalent to PARAMETER_TYPE, and DATA_VALUE as equivalent to PARAMETER_VALUE. If a particular parameter is required to be a list, then the following schema should be supported.

<parameter type="LIST_TYPE" name="PARAMETER_NAME">
    LIST_ITEM*
</parameter>

where LIST_TYPE is a subset of PARAMETER_TYPE and either one of

and each LIST_ITEM is defined as:

<item type="DATA_TYPE">DATA_VALUE</item>

This task is to support the enhancement.

shiroyuki commented 11 years ago

Done in 357662ffa5406ceaa0407c69a3ff7e6c672e98cc.