}
final Collection tags = new ArrayList();
final Collection stereotypes = element.getAppliedStereotypes();
for (Iterator stereoIt = stereotypes.iterator(); stereoIt.hasNext();)
{
Stereotype stereo = (Stereotype)stereoIt.next();
if (stereo.getName().equals(TAGGED_VALUES_STEREOTYPE))
{
List tagNames = (List)element.getValue(
stereo,
"TagName");
List tagValues = (List)element.getValue(
stereo,
"TagValue");
for (int ctr = 0; ctr < tagValues.size(); ctr++)
{
tags.add(new TagDefinitionImpl(
tagNames.get(ctr).toString(),
tagValues.get(ctr)));
}
}
else if (element.hasValue(
stereo,
"value"))
{
final Object value = element.getValue(
stereo,
"value");
tags.add(new TagDefinitionImpl(
stereo.getName(),
value));
}
else
{
for (Iterator tvIt = getAttributes(