Questions tagged [object-graph]
90 questions
13
votes
2 answers
One-way sync of two hierarchies
I'm hoping to write an algorithm to synchronize two hierarchical structures. These structures could be object graphs, data stored in relational database tables, etc (even two different structures, so long as they have comparable keys). The…

Daniel
- 47,404
- 11
- 101
- 179
13
votes
1 answer
REST API Design for Updating Object Graph
I'm designing a REST API and am looking for the recommended best practice for updating object graphs. My question is best explained in an example, so let's say that I have a GET resource as follows:
URI: /people/123
This URI returns an object graph…

Johnny Oshika
- 54,741
- 40
- 181
- 275
12
votes
3 answers
What is an efficient way to Merge two iOS Core Data Persistent Stores?
In our app under development we are using Core Data with a sqlite backing store to store our data. The object model for our app is complex. Also, the total amount of data served by our app is too large to fit into an iOS (iPhone/iPad/iPod Touch) app…

Sunny
- 1,464
- 14
- 26
12
votes
2 answers
Android Dagger updating values outside module
I am using dagger for DI in an android application.
I can provide variables to other classes outside the modules, but how to update them?
Example: Login
I need a AuthenticationModule which can Provide a User. When the app starts, the User is not…

Martin Golpashin
- 1,032
- 9
- 28
11
votes
5 answers
Java object graph visitor library
Do you know a good java object graph visitor library?
I want to visit an object and its sub components and perform some actions when some conditions are matched.
Example usage:
on a huge domain object graph, reset
each id to null
on a huge domain…

Guillaume
- 5,488
- 11
- 47
- 83
9
votes
3 answers
Object tree navigation language in Java
In the system which I'm currently developing I often have to navigate an object tree and based on its state and values take actions. In normal Java this results in tedious for loops, if statements etc... Are there alternative ways to achieve tree…

paweloque
- 18,466
- 26
- 80
- 136
9
votes
2 answers
Is there any tool to generate Object Graph on iOS app runtime?
I know there are Class Model tools (OmniGraffle, Doxygen) to generate Class model diagrams from the existing Xcode projects. But i'm looking for a tool which generates Object Graph on running iOS app in Simulator or Device.

The Debugger
- 330
- 8
- 19
7
votes
3 answers
Library for visualizing object graphs in .NET
Does anyone know of, or can recommend, a library that can recursively visualize an arbitrary object graph in .NET?
I need to be able to print out (to the console) a formatted representation of an object graph. For example, given a simple object…

Mark Seemann
- 225,310
- 48
- 427
- 736
7
votes
3 answers
java: assigning object reference IDs for custom serialization
For various reasons I have a custom serialization where I am dumping some fairly simple objects to a data file. There are maybe 5-10 classes, and the object graphs that result are acyclic and pretty simple (each serialized object has 1 or 2…

Jason S
- 184,598
- 164
- 608
- 970
7
votes
4 answers
Is there a common Java method to trim every string in an object graph?
I'm hoping to trim all Strings that are part of an object graph.
So I have an object graph like so
RootElement
- name (String)
- adjective (String)
- items ArrayOfItems
- getItems (List- )
- get(i) (Item)
Item
…

Peter Smith
- 849
- 2
- 11
- 28
7
votes
1 answer
JSON.NET CustomCreationConverter with nested objects
that is my very first question I ask on this site, so forgive me if I missed something.
I have some problems deserializing an complex object graph using JSON.NET. My class hierarchy is (simplified) as follows:
public abstract class…

CGR
- 101
- 1
- 7
6
votes
2 answers
Serialization - Viewing the Object Graph from a Stream
I'm wondering if there's a way in which I can create a tree/view of a serialised object graph, and whether anyone has any pointers? EDIT The aim being that should we encounter a de-serialization problem for some reason, that we can actually…

Ian
- 33,605
- 26
- 118
- 198
6
votes
3 answers
Why do people talk about DI frameworks "instantiating an object graph" rather than "instantiating objects"?
I'm reading a book about DI that always talks about DI frameworks "instantiating an object graph". Why say it this way rather than "instantiating objects"?

Chuck
- 685
- 2
- 7
- 14
6
votes
4 answers
Clone Whole Object Graph
While using this code to serialize an object:
public object Clone()
{
var serializer = new DataContractSerializer(GetType());
using (var ms = new System.IO.MemoryStream())
{
serializer.WriteObject(ms, this);
ms.Position =…

George Taskos
- 8,324
- 18
- 82
- 147
5
votes
1 answer
Dagger and Object Graph Scoping with Flow/Mortar
So I've been spending a lot of time with Mortar and Flow this weekend, and I think I've finally worked most of it out. I've found that it's a little bit more complex than I originally thought, mostly because I haven't quite gotten my mind around…

spierce7
- 14,797
- 13
- 65
- 106