private Collection<String> categoriesFromTypeConfiguration(final DiffNode node) { final Class<?> nodeType = node.getValueType(); if (nodeType != null) { final String[] categories = typeCategories.get(nodeType); if (categories != null) { return asList(categories); } } return emptySet(); }
private boolean hasIncludedSiblings(final DiffNode node) { for (final Map.Entry<PropertyId, Inclusion> entry : inclusions.entrySet()) { if (entry.getKey().type == node.getParentNode().getValueType() && entry.getValue() == INCLUDED) { return true; } } return false; }
public Inclusion getInclusion(final DiffNode node) { if (isInactive()) { return DEFAULT; } final Class<?> valueType = node.getValueType(); if (valueType != null && typeInclusions.containsKey(valueType)) { final Inclusion inclusion = typeInclusions.get(valueType); if (inclusion == Inclusion.INCLUDED || inclusion == Inclusion.EXCLUDED) { return inclusion; } } return Inclusion.DEFAULT; }
sb.append("state="); sb.append(getState().toString()); if (getValueType() != null) sb.append(", type=").append(getValueType().getCanonicalName());
public TypeInfo typeInfoForNode(final DiffNode node) { final Class<?> beanType = node.getValueType(); final Introspector introspector = introspectorForNode(node); final TypeInfo typeInfo = introspector.introspect(beanType); typeInfo.setInstanceFactory(instanceFactory); return typeInfo; }
public Introspector introspectorForNode(final DiffNode node) { final Introspector typeIntrospector = typeIntrospectorMap.get(node.getValueType()); if (typeIntrospector != null) { return typeIntrospector; } final Introspector nodePathIntrospector = nodePathIntrospectorHolder.valueForNodePath(node.getPath()); if (nodePathIntrospector != null) { return nodePathIntrospector; } if (defaultIntrospector == null) { defaultIntrospector = new StandardIntrospector(); } return defaultIntrospector; }
public IdentityStrategy resolve(final DiffNode node) { if (isQualified(node)) { final PropertyId propertyKey = new PropertyId(node.getParentNode().getValueType(), node.getPropertyName()); return strategies.get(propertyKey); } return null; }
public boolean isIntrospectable(final DiffNode node) { final Class<?> nodeType = node.getValueType(); if (nodeType == null) { return false; } else if (isPrimitiveTypeEnumOrArray(nodeType)) { return false; } else if (nodePathIntrospectionModeHolder.valueForNodePath(node.getPath()) == IntrospectionMode.DISABLED) { return false; } else if (typeIntrospectionModeMap.get(nodeType) == IntrospectionMode.DISABLED) { return false; } return true; }
private static boolean isQualified(final DiffNode node) { if (node.isPropertyAware()) { if (node.getParentNode() == null || node.getParentNode().getValueType() == null) { return false; } if (node.getPropertyName() == null) { return false; } return true; } return false; }
private static boolean isQualified(final DiffNode node) { if (node.isPropertyAware()) { if (node.getParentNode() == null || node.getParentNode().getValueType() == null) { return false; } if (node.getPropertyName() == null) { return false; } return true; } return false; }
public Inclusion getInclusion(final DiffNode node) { if (isQualified(node)) { final PropertyId propertyKey = new PropertyId(node.getParentNode().getValueType(), node.getPropertyName()); final Inclusion inclusion = inclusions.get(propertyKey); if (inclusion != null && inclusion != DEFAULT) { return inclusion; } else { if (hasIncludedSiblings(node)) { return EXCLUDED; } } } return DEFAULT; }
final Class<?> valueType = node.getValueType(); if (typeComparisonStrategyMap.containsKey(valueType))
private Collection<String> categoriesFromTypeConfiguration(final DiffNode node) { final Class<?> nodeType = node.getValueType(); if (nodeType != null) { final String[] categories = typeCategories.get(nodeType); if (categories != null) { return asList(categories); } } return emptySet(); }
private boolean hasIncludedSiblings(final DiffNode node) { for (final Map.Entry<PropertyId, Inclusion> entry : inclusions.entrySet()) { if (entry.getKey().type == node.getParentNode().getValueType() && entry.getValue() == INCLUDED) { return true; } } return false; }
public Inclusion getInclusion(final DiffNode node) { if (isInactive()) { return DEFAULT; } final Class<?> valueType = node.getValueType(); if (valueType != null && typeInclusions.containsKey(valueType)) { final Inclusion inclusion = typeInclusions.get(valueType); if (inclusion == Inclusion.INCLUDED || inclusion == Inclusion.EXCLUDED) { return inclusion; } } return Inclusion.DEFAULT; }
public Introspector introspectorForNode(final DiffNode node) { final Introspector typeIntrospector = typeIntrospectorMap.get(node.getValueType()); if (typeIntrospector != null) { return typeIntrospector; } final Introspector nodePathIntrospector = nodePathIntrospectorHolder.valueForNodePath(node.getPath()); if (nodePathIntrospector != null) { return nodePathIntrospector; } if (defaultIntrospector == null) { defaultIntrospector = new StandardIntrospector(); } return defaultIntrospector; }
public TypeInfo typeInfoForNode(final DiffNode node) { final Class<?> beanType = node.getValueType(); final Introspector introspector = introspectorForNode(node); final TypeInfo typeInfo = introspector.introspect(beanType); typeInfo.setInstanceFactory(instanceFactory); return typeInfo; }
public IdentityStrategy resolve(final DiffNode node) { if (isQualified(node)) { final PropertyId propertyKey = new PropertyId(node.getParentNode().getValueType(), node.getPropertyName()); return strategies.get(propertyKey); } return null; }
private static boolean isQualified(final DiffNode node) { if (node.isPropertyAware()) { if (node.getParentNode() == null || node.getParentNode().getValueType() == null) { return false; } if (node.getPropertyName() == null) { return false; } return true; } return false; }
private static boolean isQualified(final DiffNode node) { if (node.isPropertyAware()) { if (node.getParentNode() == null || node.getParentNode().getValueType() == null) { return false; } if (node.getPropertyName() == null) { return false; } return true; } return false; }