List allInterfaces = new Vector();
//declared interfaces
for(Iterator i=fInterfaceElements.iterator(); i.hasNext(); )
{
Interface intface = (Interface)i.next();
if(!containsComponent(intface, allInterfaces)) {
((InterfaceImpl)intface).setDescriptionComponent(this);
allInterfaces.add(intface);
}
}
//nested interfaces
List nestedDescs = new Vector(getNestedDescriptions());
for(Iterator i=nestedDescs.iterator(); i.hasNext(); )
{
DescriptionElement desc = (DescriptionElement)i.next();
InterfaceElement[] interfaces = desc.getInterfaceElements();
for(int j=0; j<interfaces.length; j++)
{
Interface intface = (Interface)interfaces[j];
if(!containsComponent(intface, allInterfaces)) {
((InterfaceImpl)intface).setDescriptionComponent(this);
allInterfaces.add(intface);
}
}