Logo Search packages:      
Sourcecode: libjson-java version File versions

DefaultValueProcessor net::sf::json::JsonConfig::findDefaultValueProcessor ( Class  target  )  [inline]

Finds a DefaultValueProcessor registered to the target class.
Returns null if none is registered.
Used when transforming from Java to Json.

target a class used for searching a DefaultValueProcessor.

Definition at line 216 of file JsonConfig.java.

References net::sf::json::processors::DefaultValueProcessorMatcher::getMatch().

Referenced by net::sf::json::JSONObject::_fromBean().

      if( !defaultValueMap.isEmpty() ) {
         Object key = defaultValueProcessorMatcher.getMatch( target, defaultValueMap.keySet() );
         DefaultValueProcessor processor = (DefaultValueProcessor) defaultValueMap.get( key );
         if( processor != null ) {
            return processor;

Generated by  Doxygen 1.6.0   Back to index