Package org.apache.maven.doxia.document
Class DocumentTemplate
- java.lang.Object
-
- org.apache.maven.doxia.document.DocumentTemplate
-
- All Implemented Interfaces:
java.io.Serializable
public class DocumentTemplate extends java.lang.Object implements java.io.SerializableA template that was used to create the document.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentTemplate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Method equals.java.util.DategetDate()Get the date and time when the template was last modified, prior to being used to create the current document.java.lang.StringgetHref()Get the location of the document template.java.lang.StringgetModifydate()Get the date and time when the template was last modified.java.lang.StringgetTitle()Get the name of the document template.inthashCode()Method hashCode.voidsetDate(java.util.Date date)Set the date and time when the template was last modified, prior to being used to create the current document.voidsetHref(java.lang.String href)Set the location of the document template.voidsetModifydate(java.lang.String modifydate)Set the date as String (recommended format is ISO 8601) when the template was last modified.voidsetTitle(java.lang.String title)Set the name of the document template.java.lang.StringtoString()Method toString.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- a other object.- Returns:
- boolean
-
getDate
public java.util.Date getDate()
Get the date and time when the template was last modified, prior to being used to create the current document. Use the ISO 8601 format "yyyy-MM-dd'T'HH:mm:ss.SSS" in xml.- Returns:
- Date
-
getHref
public java.lang.String getHref()
Get the location of the document template.- Returns:
- String
-
getTitle
public java.lang.String getTitle()
Get the name of the document template.- Returns:
- String
-
hashCode
public int hashCode()
Method hashCode.- Overrides:
hashCodein classjava.lang.Object- Returns:
- int
-
setDate
public 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. Use the ISO 8601 format "yyyy-MM-dd'T'HH:mm:ss.SSS" in xml.- Parameters:
date- a date object.
-
setHref
public void setHref(java.lang.String href)
Set the location of the document template.- Parameters:
href- a href object.
-
setModifydate
public void setModifydate(java.lang.String modifydate)
Set the date as String (recommended format is ISO 8601) when the template was last modified. Only used ifdateis not set.- Parameters:
modifydate- a modifydate object.- Since:
- 1.1.1.
-
setTitle
public void setTitle(java.lang.String title)
Set the name of the document template.- Parameters:
title- a title object.
-
toString
public java.lang.String toString()
Method toString.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
getModifydate
public java.lang.String getModifydate()
Get the date and time when the template was last modified.- Returns:
- the
getDate()if setted, formatted using ISO-8601 English format, otherwise return themodifydate. - Since:
- 1.1.1
- See Also:
getDate()
-
-