ISCModelProperty

The ISCModelProperty interface represents a property of a given object.

The following table contains the methods for the ISCModelProperty interface:

Method

Description

BSTR ClassName()

Returns the class name of the property.

BSTR FormatAsString()

Formats the property value as a string.

ISCPropertyValueCollection * PropertyValues()

Returns the collection of values for the model property

long Count()

Contains the number of values in the property.

SC_CLSID ClassId()

Returns the class identifier of the property.

SC_ModelPropertyFlags Flags()

Returns the flags of the property.

SC_ValueTypes DataType(VARIANT ValueId [optional])

Passes back the identifier of the native value type for the indicated property value.

VARIANT_BOOL�GetValueFacetIds( Long* FacetsTrueBasket, Long* FacetsFalseBasket)

Retrieves available property�facet IDs.

FacetsTrueBasket is a SAFEARRAY of facet ID numbers. The�listed facets�have TRUE as a value.

FacetsFalseBasket is a SAFEARRAY of facet ID numbers. The listed facets�have FALSE as a value.

The method�returns FALSE�if the property does not have a value.

VARIANT_BOOL�GetValueFacetNames(BSTR* FacetsTrueBasket,BSTR* FacetsFalseBasket)

Retrieves available property�facet names.

FacetsTrueBasket is a SAFEARRAY of facet�name strings. The listed facets�have TRUE as a value.

FacetsFalseBasket is a SAFEARRAY of facet�name strings. The listed facets�have FALSE as a value.

The method�returns FALSE�if the property does not have a value.

VARIANT_BOOL IsValid()

Returns TRUE if self is valid.

VARIANT_BOOL RemoveAllValues()

Removes all values from the property.

VARIANT_BOOL RemoveValue(VARIANT ValueId [optional])

Removes the specified value from the property. If no values remain after the removal, the property has a NULL value.

Returns TRUE if the value was removed.

VARIANT Value(VARIANT ValueId [optional], VARIANT ValueType [optional])

Retrieves the indicated property value in the requested format.

Void SetValueFacets(VARIANT* FacetsTrueBasket, VARIANT* FacetsFalseBasket)

Assigns new values to the property facets.

FacetsTrueBasket is a list of facets to be set to TRUE. It is either a�SAFEARRAY of facet ID numbers,�a SAFEARRAY of facet name strings, or a string with semicolon-separated facet names.

FacetsFalseBasket is a list of facets to be set to FALSE. It is either a�SAFEARRAY of facet ID numbers,�a SAFEARRAY of facet name strings, or a string with semicolon-separated facet names.

The method returns FALSE if the property does not have a value

void Value(VARIANT ValueId [optional], VARIANT ValueType [optional], VARIANT Val )

Sets the indicated property value with the given value.

Note: For information about valid property class identifiers and valid property class names, see the HTML document erwin Metamodel Reference, in the Metamodel Reference Bookshelf located in the erwin� Data Modeler installation folder. More information about SC_ModelPropertyFlags is located in the Enumerations section. More information about property datatypes is located in the SC_ValueTypes section.