public void execute(RefAssociationLink source) throws RuntimeException, IllegalArgumentException { RefObject targetFirst; RefObject targetSecond; targetFirst = objectsMap.get(source.refFirstEnd()); targetSecond = objectsMap.get(source.refSecondEnd()); assoc.refAddLink(targetFirst, targetSecond); }
/** * This method requires an M1 object object and a StringBuilder where to describe the object. * * @param result is the buffer where to add the obect's description * @param object is the M1 object to investigate */ private void append(StringBuilder result, String prefix, RefAssociationLink object, Set visited) { result.append( "RefAssociationLink ") .append( "{\n") .append( prefix ) .append( " firstEnd="); toString( object.refFirstEnd(), result, prefix+" ", visited); result.append("\n") .append( prefix ) .append( " secondEnd="); toString( object.refSecondEnd(), result, prefix+" ", visited); result.append("\n") .append( prefix ) .append("}"); }