}
}
}
}
Mediation mediation = null;
Container container = null;
Relator relator = null;
Element element = null;
ArrayList<MaterialAssociation> materialassociationlist = new ArrayList<MaterialAssociation>();
ArrayList<Derivation> derivationlist = new ArrayList<Derivation>();
if (getSource() instanceof Mediation)
mediation = (Mediation) getSource();
else
if (getTarget() instanceof Mediation)
mediation = (Mediation) getTarget();
if (mediation != null) {
container = mediation.getContainer();
if (mediation.getTarget().size() > 0)
if (mediation.getSource().get(0) instanceof Property)
relator = (Relator) ((Property) mediation.getSource().get(0)).getEndType();
if (mediation.getTarget().size() > 0)
if (mediation.getTarget().get(0) instanceof Property)
element = ((Property) mediation.getTarget().get(0)).getEndType();
if ((element != null) && (container != null))
for (int i = 0; i < container.getInstanciarElement().size(); ++i)
if (container.getInstanciarElement().get(i) instanceof MaterialAssociation)
for (int j = 0; j < ((MaterialAssociation) container.getInstanciarElement().get(i)).getAssociationEnd().size(); ++j)