private String [ ] parsePropertyName ( String name ) { // Figure out the number of parts of the name (this becomes the size // of the resulting array). int size = 1 ; for ( int i = 0 ; i < name . length ( ) ; i ++ ) { if ( name . charAt ( i ) == ' ' ) { size ++ ; } } String [ ] propName = new String [ size ] ; // Use a StringTokenizer to tokenize the property name. StringTokenizer tokenizer = new StringTokenizer ( name , "." ) ; int i = 0 ; while ( tokenizer . hasMoreTokens ( ) ) { propName [ i ] = tokenizer . nextToken ( ) ; i ++ ; } return propName ; }
Returns an array representation of the given Jive property . Jive properties are always in the format prop . name . is . this which would be represented as an array of four Strings .