* @since 3.0.0
*/
final class WsBreakLocationBuilder {
public static BreakLocation build(org.jitterbit.integration.debug.client.BreakLocation loc) {
BreakLocation wsBreakLoc = new BreakLocation();
IntegrationEntityId id = loc.getIntegrationEntityId();
if (id instanceof ScriptId) {
wsBreakLoc.setScriptGuid(id.toString());
}
else if (id instanceof TransformationId) {
wsBreakLoc.setTransformationGuid(id.toString());
}
else if (id instanceof OperationId) {
wsBreakLoc.setOperationGuid(id.toString());
}
wsBreakLoc.setLineNumber(loc.getLineNumber());
wsBreakLoc.setNodePath(loc.getTargetNodePath());
return wsBreakLoc;
}