bergie / VIE

Semantic Interaction Framework for JavaScript
http://viejs.org/
MIT License
303 stars 56 forks source link

Add minCount/maxCount to Attribute class #76

Closed neogermi closed 12 years ago

neogermi commented 12 years ago

We need to add capabilities to express counts of attributes on the ontological level within VIE. Besides this feature whish that came from @ruKurz, this would also help in addressing issue #34 and #21.

A proposal is to add the fields

``` Attribute.minCount Attribute.maxCount

to the Attribute class, with default values set to 0 and Number.MAX_VALUE. Two constraints:

This can be implemented straightforward. The only big issue lies within the multiple inheritance of attributes from other types.

neogermi commented 12 years ago

I renamed the fields slightly:

``` Attribute.min Attribute.max.

bergie commented 12 years ago

Fixed by #79