org.springframework.roo.addon.finder
Class FinderTokenizer

java.lang.Object
  extended by org.springframework.roo.addon.finder.FinderTokenizer

public final class FinderTokenizer
extends Object

Tokenizer used for custom find methods. Splits the presented String up by capital letters.

Since:
1.0
Author:
Stefan Schmidt

Constructor Summary
FinderTokenizer()
           
 
Method Summary
 List<Token> tokenize(String finder, String plural, org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata)
          Use this method to tokenize the finder method signature based on capital letters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinderTokenizer

public FinderTokenizer()
Method Detail

tokenize

public List<Token> tokenize(String finder,
                            String plural,
                            org.springframework.roo.addon.beaninfo.BeanInfoMetadata beanInfoMetadata)
Use this method to tokenize the finder method signature based on capital letters. This method asserts that the signature provided is valid (i.e. the fields in the String match fields in the RooEntity or are of type ReservedToken.

Parameters:
finder - The string to parse. (required)
beanInfoMetadata - The metadata for the RooEntity for which the finder String applies. (required)
Returns:
The list of tokens (could be of type FieldToken or ReservedToken as a result of the tokenizing.


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.