22 lines
525 B
Java
22 lines
525 B
Java
package org.gcube.socialnetworking.token;
|
|
|
|
public class ReplaceableToken extends Token {
|
|
|
|
protected String tokenReplacement;
|
|
|
|
public ReplaceableToken(Token token) {
|
|
super(token.token, token.delimiter, token.start, token.end);
|
|
this.tokenReplacement = token.token;
|
|
}
|
|
|
|
public ReplaceableToken(Token token, String tokenReplacement) {
|
|
super(token.token, token.delimiter, token.start, token.end);
|
|
this.tokenReplacement = tokenReplacement;
|
|
}
|
|
|
|
public String getTokenReplacement() {
|
|
return tokenReplacement;
|
|
}
|
|
|
|
}
|