public class XMLDate extends java.lang.Object implements ParagraphElement
Modifier and Type | Field and Description |
---|---|
static short |
TYPE_DATE
The date type.
|
static short |
TYPE_DATE_TIME
The date and time type.
|
static short |
TYPE_TIME
The time type.
|
static short |
TYPE_UNDEFINED
The undefined type.
|
TYPE_NONE
Constructor and Description |
---|
XMLDate() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Return the date.
|
java.util.Date |
getDate2()
Return the second date.
|
java.lang.String |
getDateAndTime()
Return a localized version of the delta between the two dates.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.lang.String |
getStringValue()
Return a localized version of the date or time.
|
java.lang.String |
getTime()
Return a localized version of the delta between the two dates.
|
short |
getType()
Return the type.
|
java.lang.String |
localizeDate()
Return a localized version of the date.
|
java.lang.String |
localizeDate2()
Return a localized version of the second date.
|
void |
setDate(java.util.Date date)
Set the date.
|
void |
setDate2(java.util.Date date)
Set the second date.
|
void |
setType(short type)
Set the type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCustomStyles, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
public static final short TYPE_UNDEFINED
public static final short TYPE_DATE
public static final short TYPE_TIME
public static final short TYPE_DATE_TIME
public java.lang.String getDeclaration()
getDeclaration
in interface StyledElement
public void setType(short type)
type
- the typepublic short getType()
public void setDate(java.util.Date date)
date
- the datepublic java.util.Date getDate()
public void setDate2(java.util.Date date)
date
- the second datepublic java.util.Date getDate2()
public java.lang.String getTime()
public java.lang.String localizeDate()
public java.lang.String localizeDate2()
public java.lang.String getDateAndTime()
public java.lang.String getStringValue()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence