List allBindings = new Vector();
//declared bindings
for(Iterator i=fBindingElements.iterator(); i.hasNext(); )
{
Binding binding = (Binding)i.next();
if(!containsComponent(binding, allBindings)) {
((BindingImpl)binding).setDescriptionComponent(this);
allBindings.add(binding);
}
}
//nested bindings
List nestedDescs = new Vector(getNestedDescriptions());
for(Iterator i=nestedDescs.iterator(); i.hasNext(); )
{
DescriptionElement desc = (DescriptionElement)i.next();
BindingElement[] bindings = desc.getBindingElements();
for(int j=0; j<bindings.length; j++)
{
Binding binding = (Binding)bindings[j];
if(!containsComponent(binding, allBindings)) {
((BindingImpl)binding).setDescriptionComponent(this);
allBindings.add(binding);
}
}