switch (strategy) {
case IOffsetStrategy.AFTERINIT:
this.offsetStrategy = new InitOffset(adapter, this.doc, this.getAdapterPrefs());
break;
case IOffsetStrategy.BEFORECURRENT:
this.offsetStrategy = new BeforeCurrentOffset(adapter, this.doc, this.getAdapterPrefs(), scopeAdapter);
break;
case IOffsetStrategy.BEGIN:
this.offsetStrategy = new BeginOffset(adapter, this.doc, this.getAdapterPrefs());
break;
case IOffsetStrategy.END: