public class DocumentTemplate
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.util.Date |
date
The date and time when the template was last
modified, prior
to being used to create the current document.
|
private java.lang.String |
href
The location of the document template.
|
private static java.text.DateFormat |
ISO_8601_FORMAT
ISO 8601 date format, i.e.
|
private java.lang.String |
modifydate
The date as String (recommended format is ISO
8601) when the template was last modified.
|
private java.lang.String |
title
The name of the document template.
|
| Constructor and Description |
|---|
DocumentTemplate() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Method equals.
|
java.util.Date |
getDate()
Get the date and time when the template was last modified,
prior
to being used to create the current document.
|
java.lang.String |
getHref()
Get the location of the document template.
|
java.lang.String |
getModifydate()
Get the date and time when the template was last modified.
|
java.lang.String |
getTitle()
Get the name of the document template.
|
int |
hashCode()
Method hashCode.
|
void |
setDate(java.util.Date date)
Set the date and time when the template was last modified,
prior
to being used to create the current document.
|
void |
setHref(java.lang.String href)
Set the location of the document template.
|
void |
setModifydate(java.lang.String modifydate)
Set the date as String (recommended format is ISO 8601) when
the template was last modified.
|
void |
setTitle(java.lang.String title)
Set the name of the document template.
|
java.lang.String |
toString()
Method toString.
|
private java.lang.String href
private java.lang.String title
private java.util.Date date
private java.lang.String modifydate
date is not set.private static final java.text.DateFormat ISO_8601_FORMAT
yyyy-MM-ddpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - public java.util.Date getDate()
public java.lang.String getHref()
public java.lang.String getTitle()
public int hashCode()
hashCode in class java.lang.Objectpublic void setDate(java.util.Date date)
date - public void setHref(java.lang.String href)
href - public void setModifydate(java.lang.String modifydate)
date is not set.modifydate - public void setTitle(java.lang.String title)
title - public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getModifydate()
getDate() if setted, formatted using ISO-8601 English format, otherwise return
the modifydate.getDate()