r.setLink(linked); return r; r.setLink(linked); return r; r.setLink(linked); return r; r.setLink(linked); return r; String rangePosition = rangeString.replace(Range.GREATER_THAN_POSITION_SYMBOL, ""); Range r = createGreaterThanRange(PositionUtils.convertStringToPositionValue(rangePosition)); r.setLink(linked); return r; String rangePosition = rangeString.replace(Range.LESS_THAN_POSITION_SYMBOL, ""); Range r = createLessThanRange(PositionUtils.convertStringToPositionValue(rangePosition)); r.setLink(linked); return r; r.setLink(linked); return r; int pos = PositionUtils.convertStringToPositionValue(rangeString); Range r = createCertainRange(pos); r.setLink(linked); return r;
/** * All properties are copied from source to target excepted the participant * @param source * @param target */ public static void copyAndOverrideRangeProperties(Range source, Range target){ if (source != null && target != null){ target.setPositions(source.getStart(), source.getEnd()); target.setLink(source.isLink()); target.setResultingSequence(source.getResultingSequence()); } }