public void generate(XmlWriter w,ExtensionProfile extProfile) throws IOException {
  ArrayList<XmlWriter.Attribute> attrs=new ArrayList<XmlWriter.Attribute>();
  if (row > 0) {
    attrs.add(new XmlWriter.Attribute("row",String.valueOf(row)));
  }
  if (col > 0) {
    attrs.add(new XmlWriter.Attribute("col",String.valueOf(col)));
  }
  if (inputValue != null) {
    attrs.add(new XmlWriter.Attribute("inputValue",inputValue));
  }
  if (numericValue != null) {
    attrs.add(new XmlWriter.Attribute("numericValue",numericValue.toString()));
  }
  w.simpleElement(Namespaces.gSpreadNs,"cell",attrs,value);
}

public void generate ( XmlWriter w , ExtensionProfile extProfile ) throws IOException { ArrayList < XmlWriter . Attribute > attrs = new ArrayList < XmlWriter . Attribute > ( ) ; if ( row > 0 ) { attrs . add ( new XmlWriter . Attribute ( "row" , String . valueOf ( row ) ) ) ; } if ( col > 0 ) { attrs . add ( new XmlWriter . Attribute ( "col" , String . valueOf ( col ) ) ) ; } if ( inputValue != null ) { attrs . add ( new XmlWriter . Attribute ( "inputValue" , inputValue ) ) ; } if ( numericValue != null ) { attrs . add ( new XmlWriter . Attribute ( "numericValue" , numericValue . toString ( ) ) ) ; } w . simpleElement ( Namespaces . gSpreadNs , "cell" , attrs , value ) ; }
writes this cell as xml , omitting any unspecified fields .
