public JsPermittedChainUsage fromString ( String name ) { JsPermittedChainUsage result = null ; for ( int i = 0 ; i < _set . length && result == null ; i ++ ) { if ( name . equals ( _set [ i ] . toString ( ) ) ) result = _set [ i ] ; } return result ; }
This method converts a string into an instance of the enum . If the string is not valid for this enum then null is returned .