You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2013/10/16 15:12:42 UTC

svn commit: r1532754 - /directory/escimo/trunk/json2java/src/main/resources/resource-class.st

Author: kayyagari
Date: Wed Oct 16 13:12:42 2013
New Revision: 1532754

URL: http://svn.apache.org/r1532754
Log:
made the schema ID statically accessible

Modified:
    directory/escimo/trunk/json2java/src/main/resources/resource-class.st

Modified: directory/escimo/trunk/json2java/src/main/resources/resource-class.st
URL: http://svn.apache.org/viewvc/directory/escimo/trunk/json2java/src/main/resources/resource-class.st?rev=1532754&r1=1532753&r2=1532754&view=diff
==============================================================================
--- directory/escimo/trunk/json2java/src/main/resources/resource-class.st (original)
+++ directory/escimo/trunk/json2java/src/main/resources/resource-class.st Wed Oct 16 13:12:42 2013
@@ -27,11 +27,15 @@ $visibility$ $static$ class $className$ 
 {
 
     $allAttrs: { attr | private $attr.javaType$ $attr.name$;}; separator="\n\n"$
+
+   $if(schemaId)$
+    public static String SCHEMA_ID = "$schemaId$";
+   $endif$
     
     public $className$()
     {
 	    $if(schemaId)$
-	     super.setSchemaId( "$schemaId$" );
+	     super.setSchemaId( SCHEMA_ID );
 	    $endif$
 	    
 	    $if(resourceDesc)$