Package de.danielbechler.diff.introspection

Examples of de.danielbechler.diff.introspection.ObjectDiffProperty


      return new EqualsOnlyComparisonStrategy();
    }

    final ObjectDiffPropertyComparisonStrategyResolver comparisonStrategyResolver = ObjectDiffPropertyComparisonStrategyResolver.instance;

    final ObjectDiffProperty objectDiffProperty = node.getPropertyAnnotation(ObjectDiffProperty.class);
    final ComparisonStrategy comparisonStrategyFromObjectDiffPropertyAnnotation = comparisonStrategyResolver.comparisonStrategyForAnnotation(objectDiffProperty);
    if (comparisonStrategyFromObjectDiffPropertyAnnotation != null)
    {
      return comparisonStrategyFromObjectDiffPropertyAnnotation;
    }
View Full Code Here


    return false;
  }

  public Inclusion getInclusion(final DiffNode node)
  {
    final ObjectDiffProperty propertyAnnotation = node.getPropertyAnnotation(ObjectDiffProperty.class);
    if (propertyAnnotation != null)
    {
      if (propertyAnnotation.inclusion() == INCLUDED || propertyAnnotation.inclusion() == EXCLUDED)
      {
        return propertyAnnotation.inclusion();
      }
      else if (propertyAnnotation.excluded())
      {
        return EXCLUDED;
      }
    }
    else if (hasIncludedSibling(node))
View Full Code Here

  private static boolean hasIncludedSibling(final DiffNode node)
  {
    for (final PropertyAwareAccessor accessor : getSiblingAccessors(node))
    {
      final ObjectDiffProperty annotation = accessor.getReadMethodAnnotation(ObjectDiffProperty.class);
      if (annotation != null && annotation.inclusion() == INCLUDED)
      {
        return true;
      }
    }
    return false;
View Full Code Here

TOP

Related Classes of de.danielbechler.diff.introspection.ObjectDiffProperty

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.