Methods Summary |
---|
public java.util.Date | getDate()
return new Date(this.date);
|
public void | processElementValue(java.lang.String aValue)
if (aValue == null)
throw new IllegalArgumentException("element value must not be null");
this.date = GOMUtils.parseRfc3339DateFormat(aValue);
this.rfc3339String = aValue;
|
public void | processEndElement()
if (this.rfc3339String == null)
throw new GDataParseException(String.format(
MISSING_ELEMENT_VALUE, this.localName,
"RFC3339 Date Time"));
|
public void | setDate(java.util.Date aDate)
if (aDate == null)
return;
this.date = aDate.getTime();
this.rfc3339String = GOMUtils.buildRfc3339DateFormat(this.date);
|
public void | writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)
if (this.rfc3339String == null)
this.rfc3339String = GOMUtils
.buildRfc3339DateFormat(this.date == 0 ? System
.currentTimeMillis() : this.date);
aStreamWriter.writeSimpleXMLElement(this.qname,
getXmlNamespaceAttributes(), this.rfc3339String);
|