package com.weblyzard.api.model.document.partition;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * A {@link CharSpan} used for token which contains POS and Dependency information.
 * @author Albert Weichselbraun
 *
 */
@NoArgsConstructor
public class TokenCharSpan extends CharSpan{
    private @Setter @Getter String pos;
    private @Setter @Getter Dependency dependency;
    
    public TokenCharSpan(int start, int end, String pos, Dependency dependency) {
        super(start, end);
        this.pos = pos;
        this.dependency = dependency;
    }
}

@@ -122,16 +122,54 @@
 .Setter;
+%0Aimport lombok.experimental.Accessors;
 %0A%0A/**%0A *
@@ -250,16 +250,20 @@
 mation.%0A
+ * %0A
  * @auth
@@ -312,16 +312,41 @@
 tructor%0A
+@Accessors(chain = true)%0A
 public c
@@ -380,16 +380,17 @@
 CharSpan
+ 
 %7B%0A    pr
@@ -478,13 +478,9 @@
 cy;%0A
-    
 %0A
+
     
@@ -604,24 +604,24 @@
 .pos = pos;%0A
-
         this
@@ -651,11 +651,247 @@
 y;%0A    %7D
+%0A%0A    @Override%0A    public TokenCharSpan setStart(int start) %7B%0A        return (TokenCharSpan) super.setStart(start);%0A    %7D%0A%0A    @Override%0A    public TokenCharSpan setEnd(int end) %7B%0A        return (TokenCharSpan) super.setEnd(end);%0A    %7D
 %0A%7D%0A

return TokenCharSpans instead of CharSpans for setter