directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1532754 - /directory/escimo/trunk/json2java/src/main/resources/resource-class.st
Date Wed, 16 Oct 2013 13:12:42 GMT
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)$



Mime
View raw message