Package modTransf.engine

Examples of modTransf.engine.TransformationException


    {
      return PropertyUtils.getProperty(parentBean, propertyName);
    }
    catch(NoSuchMethodException ex)
    {
      throw new TransformationException(ex);
    }
    catch(InvocationTargetException ex)
    {
      throw new TransformationException(ex);
    }
    catch(IllegalAccessException ex)
    {
      throw new TransformationException(ex);
    }
   }
View Full Code Here


     {
       PropertyUtils.setProperty(parentBean, propertyName, value);
     }
     catch(NoSuchMethodException ex)
     {
       throw new TransformationException(ex);
     }
     catch(InvocationTargetException ex)
     {
       throw new TransformationException(ex);
     }
     catch(IllegalAccessException ex)
     {
       throw new TransformationException(ex);
     }
   }
View Full Code Here

     else if( "Map".equalsIgnoreCase(type) )
      return new java.util.HashMap();
     else if( "Collection".equalsIgnoreCase(type) )
      return new java.util.ArrayList();
     else
      throw new TransformationException("DataType '" + type + "' not recognize.");

  }
View Full Code Here

   else if( "Object".equalsIgnoreCase(type) )
    return true;
   else if( isClassInstance(bean) )
    return true;
   else
    throw new TransformationException("Type '" + type + "' not recognize.");
  }
View Full Code Here

   else if( "Map".equalsIgnoreCase(type) )
    return new java.util.HashMap();
   else if( "Collection".equalsIgnoreCase(type) )
    return new java.util.ArrayList();
   else
    throw new TransformationException("DataType '" + type + "' not recognize.");
  }
View Full Code Here

       {
         isConform = getDomain().getModelHelper(context).isInstanceOf(currentValue, type);
       }
       catch(ModelException ex)
       {
         throw new TransformationException(ex);
       }
     }
     if( !isConform )
       return false;
View Full Code Here

      {
        isConform = getDomain().getModelHelper(context).isInstanceOf(currentValue, type);
      }
      catch(ModelException ex)
      {
        throw new TransformationException(ex);
      }
    }
    if( !isConform )
      return false;
View Full Code Here

     // Create the concept from type if needed
    if( concept == null )
    {
      if(type==null)
      {
        throw new TransformationException("Can't create concept for property '"+ propertyName + "'. Type must be set.");
      }

      try
      {
        if( ruleLog.isTraceEnabled() )
        {
        ruleLog.trace("Create concept of type '" + type + "'." );
        }

        concept = getDomain().getModelHelper(request).createInstance(type);
        if( varName != null )
        {
          request.setAttribute(varName, concept, request.LOCAL_SCOPE);
          if( ruleLog.isTraceEnabled() )
            ruleLog.trace("setAttribute( '" + varName + "', '" + type + "' )" );

        }
      }
      catch(InstantiationException ex)
      {
        throw new TransformationException(ex);
      }
    }

    // populate the concept
    Iterator iter = propertyValues.entrySet().iterator();
View Full Code Here

       writer.close();
       return null;
     }
     catch(IOException ex)
     {
       throw new TransformationException(ex);
     }
   }
View Full Code Here

        }
      }
    }
    catch(ModelException ex)
    {
      throw new TransformationException(ex);
    }
    return argSets;
  }
View Full Code Here

TOP

Related Classes of modTransf.engine.TransformationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.