------------------------------------------------------------
revno: 15543
committer: Morten Olav Hansen <[email protected]>
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;
+    }
 }

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to