Monday, February 28, 2011

Re: PlaceTokenizer with no (trailing) token



On Saturday, February 26, 2011 10:12:53 AM UTC+1, George Moschovitis wrote:
Is there a way to implement a place with no token?

No.
You can have a tokenizer with no prefix though, and map a place type to a token (and back) there.
 
ie, have a tokenizer like this:

@Prefix("prefix")
public class MyTokenizer ... {
  ...
  @Override
  public String getToken(P place) {
    return null; 
  }
}

this one generates tokens like this:

#prefix:null

is there a way to get rid of ':null' ?

 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment