@Test public void no_ChildMap_From_RootMap_On_NoChildFound() { assertThat(underTest.getChildFromRoot(), nullValue()); }
@Nullable public NestedAttributesMap getChildFromRoot() { if (isMappingInsideArray()) { return null; } NestedAttributesMap existingChild = root; for (String part : currentPathInParts()) { Object o = existingChild.get(part); if (isNull(o) || o instanceof Map) { existingChild = existingChild.child(part); } } return existingChild.equals(root) ? null : existingChild; }
NestedAttributesMapJsonParser extends CurrentPathJsonParser { @Nullable public NestedAttributesMap getChildFromRoot() { if (isMappingInsideArray()) { return null; } NestedAttributesMap existingChild = root; for (String part : currentPathInParts()) { Object o = existingChild.get(part); if (isNull(o) || o instanceof Map) { existingChild = existingChild.child(part); } } return existingChild.equals(root) ? null : existingChild; } }
NestedAttributesMapJsonParser extends CurrentPathJsonParser { @Nullable public NestedAttributesMap getChildFromRoot() { if (isMappingInsideArray()) { return null; } NestedAttributesMap existingChild = root; for (String part : currentPathInParts()) { Object o = existingChild.get(part); if (isNull(o) || o instanceof Map) { existingChild = existingChild.child(part); } } return existingChild.equals(root) ? null : existingChild; } NestedAttributesMapJsonParser(final JsonParser jsonParser, final NestedAttributesMap root); }
NestedAttributesMapJsonParser extends CurrentPathJsonParser { @Nullable public NestedAttributesMap getChildFromRoot() { if (isMappingInsideArray()) { return null; } NestedAttributesMap existingChild = root; for (String part : currentPathInParts()) { Object o = existingChild.get(part); if (isNull(o) || o instanceof Map) { existingChild = existingChild.child(part); } } return existingChild.equals(root) ? null : existingChild; } NestedAttributesMapJsonParser(final JsonParser jsonParser, final NestedAttributesMap root); @Nullable NestedAttributesMap getChildFromRoot(); void markMappingInsideArray(); void unMarkMappingInsideArray(); void enableDefaultMapping(); void disableDefaultMapping(); NestedAttributesMap getRoot(); boolean isMappingInsideArray(); boolean isDefaultMapping(); }
NestedAttributesMapJsonParser extends CurrentPathJsonParser { @Nullable public NestedAttributesMap getChildFromRoot() { if (isMappingInsideArray()) { return null; } NestedAttributesMap existingChild = root; for (String part : currentPathInParts()) { Object o = existingChild.get(part); if (isNull(o) || o instanceof Map) { existingChild = existingChild.child(part); } } return existingChild.equals(root) ? null : existingChild; } NestedAttributesMapJsonParser(final JsonParser jsonParser, final NestedAttributesMap root); @Nullable NestedAttributesMap getChildFromRoot(); void markMappingInsideArray(); void unMarkMappingInsideArray(); void enableDefaultMapping(); void disableDefaultMapping(); NestedAttributesMap getRoot(); boolean isMappingInsideArray(); boolean isDefaultMapping();  }