/** * Copy from partner link {0} with enpoint reference {1} requires * the corresponding role to be defined on partner link. */ public CompilationMessage errCopyFromUndeclaredPartnerRole(String rval, String epr) { return this.formatCompilationMessage( "Copy from partner link {0} with enpoint reference {1} requires" + " the corresponding role to be defined on partner link.", rval, epr); }
throw new CompilationException(__cmsgs.errMismatchedMessageAssignment(lvar, tlvalue, rvar, trvalue)); && (!(ocopy.to instanceof OAssign.VariableRef) || !((OAssign.VariableRef) ocopy.to).isMessageRef())) { String rval = ((OAssign.VariableRef) ocopy.from).variable.name; throw new CompilationException(__cmsgs.errCopyFromMessageToNonMessage(rval)); throw new CompilationException(__cmsgs.errCopyToMessageFromNonMessage(lval)); && !((OAssign.PartnerLinkRef) ocopy.to).partnerLink.hasPartnerRole()) { String lval = ((OAssign.PartnerLinkRef) ocopy.to).partnerLink.getName(); throw new CompilationException(__cmsgs.errCopyToUndeclaredPartnerRole(lval)); && !((OAssign.PartnerLinkRef) ocopy.from).partnerLink.hasMyRole()) { String lval = ((OAssign.PartnerLinkRef) ocopy.from).partnerLink.getName(); throw new CompilationException(__cmsgs.errCopyFromUndeclaredPartnerRole(lval, "myRole")); throw new CompilationException(__cmsgs.errCopyFromUndeclaredPartnerRole(lval, "partnerRole"));
public void compile(OActivity dest, Activity source) { OAssign oassign = (OAssign) dest; AssignActivity ad = (AssignActivity) source; for (Copy scopy : ad.getCopies()) { OAssign.Copy ocopy = new OAssign.Copy(_context.getOProcess()); ocopy.keepSrcElementName = scopy.isKeepSrcElement(); ocopy.ignoreMissingFromData = scopy.isIgnoreMissingFromData(); ocopy.ignoreUninitializedFromVariable = scopy.isIgnoreUninitializedFromVariable(); ocopy.insertMissingToData = scopy.isInsertMissingToData(); ocopy.insertMissingToData = scopy.isInsertMissingToData(); ocopy.debugInfo = new DebugInfo(_context.getSourceLocation(), scopy.getLineNo(), source.getExtensibilityElements()); try { if (scopy.getTo() == null) throw new CompilationException(__cmsgs.errMissingToSpec().setSource(scopy)); Object[] toResultType = new Object[1]; ocopy.to = compileTo(scopy.getTo(), toResultType); if (scopy.getFrom() == null) throw new CompilationException(__cmsgs.errMissingFromSpec().setSource(scopy)); ocopy.from = compileFrom(scopy.getFrom(), toResultType[0]); verifyCopy(ocopy); oassign.copy.add(ocopy); } catch (CompilationException ce) { _context.recoveredFromError(scopy, ce); } } }
throw new CompilationException(__cmsgs.errUnknownToSpec().setSource(to)); } catch (CompilationException ce) { if (ce.getCompilationMessage().source == null)
throw new CompilationException(__cmsgs.errUnkownFromSpec().setSource(from));
/** Copy to message variable {0} requires a message for the r-value. */ public CompilationMessage errCopyToMessageFromNonMessage(String lval) { return this.formatCompilationMessage( "Copy to message variable {0} requires a message for the r-value.", lval); }
/** Copy from message variable {0} requires a message for the l-value. */ public CompilationMessage errCopyFromMessageToNonMessage(String rval) { return this.formatCompilationMessage( "Copy from message variable {0} requires a message for the l-value.", rval); }
/** Copy to partner link {0} requires the partnerRole to be defined on partner link. */ public CompilationMessage errCopyToUndeclaredPartnerRole(String lval) { return this.formatCompilationMessage( "Copy to partner link {0} requires the partnerRole to be defined on partner link.", lval); }
/** * Copy to message variable {0} of type {1} from message {2} of type {3} is * not permitted (the message types do not match). */ public CompilationMessage errMismatchedMessageAssignment(String lvar, QName tlvalue, String rval, QName trvalue) { return this.formatCompilationMessage( "Copy to message variable {0} of type {1} from message {2}" + " of type {3} is not permitted (the message types do not match).", lvar, tlvalue, rval, trvalue); }
/** To-spec format is unrecognized. */ public CompilationMessage errUnknownToSpec() { return this.formatCompilationMessage("To-spec format is unrecognized."); }
/** Copy missing to-spec. */ public CompilationMessage errMissingToSpec() { return this.formatCompilationMessage("Copy missing to-spec."); }
/** Copy missing from-spec. */ public CompilationMessage errMissingFromSpec() { return this.formatCompilationMessage("Copy missing from-spec."); }
/** From-spec format is unrecognized. */ public CompilationMessage errUnkownFromSpec() { return this.formatCompilationMessage("From-spec format is unrecognized."); }