Function tip_AnnotationContainsAttributeMatchingValues


Prototype: tip_AnnotationContainsAttributeMatchingValues(Annotation);
Arguments:

Ann: The Annotation to be examined (CDM_Annotation)
AttributeName: The name of the desired Attribute (string)
ValuePatternsObj: The pattern the Attribute Value should match (list)

C++ API Sections
Tcl API Sections
Description
Return Value
Notes
See Also
Index

Description:

This function will check the provided Annotation (specified through the "Annotation" parameter) to locate an Attribute that has the specified name (through the "AttributeName" parameter). If such an Attribute is not found in the Annotation, 0 will be returned. If a proper Attribute is found, its value will be matched against the set of provided (though the "ValuePatternsObj" parameter) patterns: if a match is found with any of the patterns 1 will be returned, else this function will return 0.

The patterns specified through the "ValuePatternsObj" parameter must follow the same rules as the patterns used with the "string match" Tcl command.

Return Value:

This function will return 1 (true) if an Attribute with the provided name exists in the specified Annotation, and its value matches any of the provided patterns. Else, 0 (false) will be returned.

Notes:

This function is equivelant to CDM_AnnotationContainsAttributeMatchingValues (C++ API).

See Also:

tip_AnnotationContainsAttributeMatchingValue, CDM_AnnotationContainsAttributeMatchingValues, string match


Generated by: petasis@aias on Wed Aug 16 10:31:45 PM EEST 2006.