svn commit: r1232385 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1232385 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java

hansbak-2
Author: hansbak
Date: Tue Jan 17 11:10:10 2012
New Revision: 1232385

URL: http://svn.apache.org/viewvc?rev=1232385&view=rev
Log:
add getOptionName method to productConfig wrapper

Modified:
    ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java?rev=1232385&r1=1232384&r2=1232385&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/config/ProductConfigWrapper.java Tue Jan 17 11:10:10 2012
@@ -664,6 +664,15 @@ public class ProductConfigWrapper implem
             }
         }
 
+        public String getOptionName() {
+            return (configOption.getString("configOptionName") != null? configOption.getString("configOptionName"): "no option name");
+        }
+
+        public String getOptionName(Locale locale) {
+        
+            return (configOption.getString("configOptionName") != null? (String) configOption.get("configOptionName", locale): "no option name");
+        }
+
         public String getDescription() {
             return (configOption.getString("description") != null? configOption.getString("description"): "no description");
         }