Package org.elegant.aash.comparator.parsing.visitor.model

Examples of org.elegant.aash.comparator.parsing.visitor.model.PropertyElementValue


  private PropertyElementValue _graph;
  private List<PropertyElementValue> currentGraphNodes;

  private PropertyExpressionVisitor(Object oldBean, Object newBean) {
    // Init first element;
    _graph = new PropertyElementValue(oldBean, newBean);
    currentGraphNodes = Lists.newArrayList(_graph);
  }
View Full Code Here


          if (currentGraphNode.getNewInitialValue() != null) {
            newObject = m.invoke(currentGraphNode.getNewInitialValue());
          }
         
          if (indexVisitor == null) {
            currentGraphNode.setNext(Lists.newArrayList(new PropertyElementValue(oldObject, newObject)));
          }else {
            currentGraphNode.setCondition(compareDottedExpression.getIndex().toString());
            if(indexVisitor.getDouble() != null) {
              currentGraphNode.setNext(Lists.newArrayList(new PropertyElementValue(Objects.safeGet(oldObject,indexVisitor.getDouble().intValue()) , Objects.safeGet(newObject,indexVisitor.getDouble().intValue()))));
            } else if(indexVisitor.isStar()) {
              List<PropertyElementValue> next = Lists.newArrayList();
              for(int i = 0; i < Objects.safeMaxSize(oldObject, newObject); i++) {
                next.add(new PropertyElementValue(Objects.safeGet(oldObject,i), Objects.safeGet(newObject,i)));
              }
              currentGraphNode.setNext(next);
            }
          }
        }
View Full Code Here

TOP

Related Classes of org.elegant.aash.comparator.parsing.visitor.model.PropertyElementValue

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.