public void setName ( String name ) { this . name = name ; List < Token > tokens = Tokenizer . tokenize ( name , true ) ; int tokenCount = 0 ; for ( Token t : tokens ) { if ( t . getType ( ) != TokenType . TEXT ) { tokenCount ++ ; } } if ( tokenCount > 0 ) { this . nameTokens = tokens . toArray ( new Token [ 0 ] ) ; } else { this . nameTokens = null ; } }
Sets the dispatch name .