public String getParamType ( ) { int firstColon = myValue . indexOf ( ' ' ) ; if ( firstColon == - 1 || firstColon == myValue . length ( ) - 1 ) { return null ; } return myValue . substring ( 0 , firstColon ) ; }
Returns the portion of the value before the first colon