coreRuntime/src/sc/dyn/DynUtil.java
public static IBeanMapper resolvePropertyMapping(Object type, String dstPropName) {
      IBeanMapper res;
      if (dynamicSystem == null) {
         if (type instanceof Class)
            return TypeUtil.resolvePropertyMapping((Class) type, dstPropName);
         else if (type instanceof DynType) {
            res = ((DynType) type).getPropertyMapper(dstPropName);
            if (res != null)
               return res;
         }
         else if (type instanceof String) {
            Object resType = DynUtil.findType((String) type);
            if (resType != null)
               return resolvePropertyMapping(resType, dstPropName);
            throw new IllegalArgumentException("No type: " + type + " for resolvePropertyMapping of: " + dstPropName);
         }
         else
            throw new IllegalArgumentException("Attempt to use dynamic mapping with no registered dynamic model");
      }
      else
         res = dynamicSystem.getPropertyMapping(type, dstPropName);
      if (res == null) {
         System.err.println("No property: " + dstPropName + " for: " + type);
      }
      return res;
   }
/** Like getPropertyMapping but prints an error if the property is not found. */
Like getPropertyMapping but prints an error if the property is not found.
Like getPropertyMapping but prints an error if the property is not found .
public static IBeanMapper resolvePropertyMapping(Object type, String dstPropName) {
      IBeanMapper res;
      if (dynamicSystem == null) {
         if (type instanceof Class)
            return TypeUtil.resolvePropertyMapping((Class) type, dstPropName);
         else if (type instanceof DynType) {
            res = ((DynType) type).getPropertyMapper(dstPropName);
            if (res != null)
               return res;
         }
         else if (type instanceof String) {
            Object resType = DynUtil.findType((String) type);
            if (resType != null)
               return resolvePropertyMapping(resType, dstPropName);
            throw new IllegalArgumentException("No type: " + type + " for resolvePropertyMapping of: " + dstPropName);
         }
         else
            throw new IllegalArgumentException("Attempt to use dynamic mapping with no registered dynamic model");
      }
      else
         res = dynamicSystem.getPropertyMapping(type, dstPropName);
      if (res == null) {
         System.err.println("No property: " + dstPropName + " for: " + type);
      }
      return res;
   }
public static IBeanMapper resolvePropertyMapping ( Object type , String dstPropName ) { IBeanMapper res ; if ( dynamicSystem == null ) { if ( type instanceof Class ) return TypeUtil . resolvePropertyMapping ( ( Class ) type , dstPropName ) ; else if ( type instanceof DynType ) { res = ( ( DynType ) type ) . getPropertyMapper ( dstPropName ) ; if ( res != null ) return res ; } else if ( type instanceof String ) { Object resType = DynUtil . findType ( ( String ) type ) ; if ( resType != null ) return resolvePropertyMapping ( resType , dstPropName ) ; throw new IllegalArgumentException ( "No type: " + type + " for resolvePropertyMapping of: " + dstPropName ) ; } else throw new IllegalArgumentException ( "Attempt to use dynamic mapping with no registered dynamic model" ) ; } else res = dynamicSystem . getPropertyMapping ( type , dstPropName ) ; if ( res == null ) { System . err . println ( "No property: " + dstPropName + " for: " + type ) ; } return res ; }
Like getPropertyMapping but prints an error if the property is not found.
Like getPropertyMapping but prints an error if the property is not found .