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

PropertyNameProcessor net::sf::json::JsonConfig::findPropertyNameProcessor ( Class  beanClass  )  [inline]

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

propertyType a class used for searching a PropertyNameProcessor.

Definition at line 336 of file JsonConfig.java.

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

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

      if( !propertyNameProcessorMap.isEmpty() ) {
         Object key = propertyNameProcessorMatcher.getMatch( beanClass, propertyNameProcessorMap.keySet() );
         return (PropertyNameProcessor) propertyNameProcessorMap.get( key );

      return null;

Generated by  Doxygen 1.6.0   Back to index