← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15543: added class information to ComplexNode, useful in cases where the ComplexNode represents a class, ...

 

------------------------------------------------------------
revno: 15543
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-06-03 16:37:47 +0200
message:
  added class information to ComplexNode, useful in cases where the ComplexNode represents a class, and you want that information for later purposes (like getting the schema, link-generator etc)
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/types/ComplexNode.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/types/ComplexNode.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/types/ComplexNode.java	2014-05-31 23:48:24 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/node/types/ComplexNode.java	2014-06-03 14:37:47 +0000
@@ -36,8 +36,26 @@
  */
 public class ComplexNode extends AbstractNode
 {
+    private Class<?> klass;
+
     public ComplexNode( String name )
     {
         super( name, NodeType.COMPLEX );
     }
+
+    public ComplexNode( String name, Class<?> klass )
+    {
+        super( name, NodeType.COMPLEX );
+        this.klass = klass;
+    }
+
+    public Class<?> getKlass()
+    {
+        return klass;
+    }
+
+    public void setKlass( Class<?> klass )
+    {
+        this.klass = klass;
+    }
 }