Package com.codiform.moo

Examples of com.codiform.moo.MissingSourcePropertyException


        if ( property != null ) {
          return property;
        }
      }
    }
    throw new MissingSourcePropertyException( expression );
  }
View Full Code Here


      SourceProperty property = item.getSourceProperty( expression );
      if ( property != null ) {
        return property;
      }
    }
    throw new MissingSourcePropertyException( expression );
  }
View Full Code Here

  public SourceProperty getSourceProperty( String expressionPrefix, String unprefixedExpression ) {
    // Because MVEL prefix was used, assume that a failure here is worth reporting right away.
    try {
      return compileAndReturnProperty( unprefixedExpression );
    } catch( ArrayIndexOutOfBoundsException exception ) {
      throw new MissingSourcePropertyException( expressionPrefix + ":" + unprefixedExpression, exception );
    } catch( CompileException exception ) {
      throw new MissingSourcePropertyException( expressionPrefix + ":" + unprefixedExpression, exception );
    }
  }
View Full Code Here

      updateOrReplaceProperty( destination, value, property,
          translationSource );
      return true;
    } catch( PropertyAccessException exception ) {
      if( property.isSourceRequired( configuration.isSourcePropertyRequired() ) ) {
        throw new MissingSourcePropertyException(
            property.getTranslationExpression(),
            source.getClass(),
            exception );
      }
      return false;
View Full Code Here

TOP

Related Classes of com.codiform.moo.MissingSourcePropertyException

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.