Package cambridge.runtime

Examples of cambridge.runtime.PropertyUtils


   public Object eval(Map<String, Object> p) throws ExpressionEvaluationException {
      if (properties == null) {
         return p.get(varName);
      }

      PropertyUtils utils = PropertyUtils.instance();

      Object object = p.get(varName);
      if (object == null) {
         return null;
      }
      for (VarProperty property : properties) {
         if (property instanceof IdentifierVarProperty) {
            IdentifierVarProperty id = (IdentifierVarProperty) property;
            try {
               object = utils.getBeanProperty(object, id.name);
            } catch (PropertyAccessException e) {
               throw new ExpressionEvaluationException(e);
            }
         } else {
            MapVarProperty m = (MapVarProperty) property;
View Full Code Here


   public Object eval(ExpressionContext context) throws ExpressionEvaluationException {
      if (properties == null) {
         return context.get(varName);
      }

      PropertyUtils utils = PropertyUtils.instance();

      Object object = context.get(varName);
      if (object == null) {
         return null;
      }
      for (VarProperty property : properties) {
         if (property instanceof IdentifierVarProperty) {
            IdentifierVarProperty id = (IdentifierVarProperty) property;
            try {
               object = utils.getBeanProperty(object, id.name);
            } catch (PropertyAccessException e) {
               throw new ExpressionEvaluationException(e);
            }
         } else {
            MapVarProperty m = (MapVarProperty) property;
View Full Code Here

TOP

Related Classes of cambridge.runtime.PropertyUtils

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.