*/
public Object getStereotypeTaggedValue(Object object, String stereotype,
String attributeName)
throws ModelException
{
RefObject modelElement = getStereotype(object, stereotype);
Collection tagValues = (Collection)modelElement.refGetValue("taggedValue");
Iterator iter = tagValues.iterator();
while(iter.hasNext())
{
RefObject tag = (RefObject)iter.next();
RefObject tagDef = (RefObject)tag.refGetValue("type");
RefObject tagStereotype = (RefObject)tagDef.refGetValue("owner");
if(tagStereotype==null)
{
continue;
}
String tagName = (String)tagDef.refGetValue("tagType");
String sterotypeName = (String)tagStereotype.refGetValue("baseClass");
if(attributeName.equals(tagName)&&stereotype.equals(stereotype))
{
return tag.refGetValue("dataValue");
}