title: return list of objects with respected values
body: <p>I need to create class that should return object which is build from this attributes</p>
  
  <pre><code>Object object;
  String Name;
  String ChildName;
  String TagName;
  </code></pre>
  
  <p>The problem here is that I need to return list i.e.
  In the list for every object there is name,child ... strings.</p>
  
  <p>How can I do that in java?</p>