Code example for XMLGregorianCalendar

Methods: toXMLFormat

0
  @Override 
  public String toXMLFormat()
  { 
    if (dataType == GMONTH && FIX_GMONTH_PRINT)
    { 
      String value = xmlGregorianCalendar.toXMLFormat();
      if (value.length() > 5 && value.charAt(4) == '-' && value.charAt(5) == '-')
      { 
        StringBuilder v = new StringBuilder(value);
        v.delete(4, 6);
        value = v.toString();
      } 
      return value;
    } 
    return xmlGregorianCalendar.toXMLFormat();
  } 
 
  private void writeObject(ObjectOutputStream out) throws IOException 
  { 
    out.writeShort(dataType);
Connect your IDE to all the code out there  Get Codota for Java