The PropertyValueSet class

 

Overview

class PropertyValueSet extends Element;

 

Set of property values (see PropertyValue). Describes the value of a property for a typed Requirement and Term or a Property default value for a typed RequirementContainer and Dictionary.

 

Detailed class diagram for PropertyValueSet

 

See also:  Requirement, RequirementContainer, Term, Dictionary, PropertySet, PropertyValue

 

 

PropertyValueSet properties

The class has the following associations:

·         Type:PropertySet: type of the PropertyValueSet.

·         Value:PropertyValue: value of each Property contained in the PropertySet which types this value set.

 

 

PropertyValueSet consistency rules

Composition:

·         A PropertyValueSet must belong to a Requirement, a RequirementContainer, a Dictionary or a Term.

·         A PropertyValueSet must belong to one and only one element.

 

Type:

·         A PropertyValueSet type must be the same as its owner.

 

Value:

·         A PropertyValueSet must own one and only one PropertyValue for each Property owned by the typing PropertySet.

 

 

PropertyValueSet methods

 

PropertyValueSet methods

 

PropertyValue getValue(in string key)

This returns the default PropertyValue for the key named Property (see Property).

 

 

boolean setValue(in string key, in string value)

This changes a property default value. The corresponding PropertyValue must already exist in the default PropertyValueSet.  In this case, the method returns true, otherwise it returns false.