[HepData-svn] r1743 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Feb 17 12:45:54 GMT 2014


Author: whalley
Date: Mon Feb 17 12:45:54 2014
New Revision: 1743

Log:
adding to point description to HepML formatter

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java	Mon Feb 17 11:06:44 2014	(r1742)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/formats/HepMLFormatter.java	Mon Feb 17 12:45:54 2014	(r1743)
@@ -195,6 +195,7 @@
                 }
                 for (Point pt : yax.getPoints()){
                     s.append("            <point id='pt-99-" + ds.getId() + "-" + yax.getId() + "-" + pt.getId() + "' pointId='" + pt.getId() + "'");
+                    if(pt.getDescription() != null) { s.append(" description='" + pt.getDescription() + "'"); }
                     if(pt.getValue() != null){ s.append(" value='" + pt.getValue() + "'"); }
                     if(pt.getValueLength() != null){ s.append(" valuelength='" + pt.getValueLength() + "'"); }
                     if(pt.getRelation() != null){ s.append(" relation='" + pt.getRelation().toShortName() + "'"); }


More information about the HepData-svn mailing list