Package org.apache.maven.doxia.site
Class PublishDate
- java.lang.Object
-
- org.apache.maven.doxia.site.PublishDate
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class PublishDate extends java.lang.Object implements java.io.Serializable, java.lang.CloneableModify display properties for the date in the header/footer. By default is the publish date.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PublishDate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublishDateclone()Method clone.booleanequals(java.lang.Object other)Method equals.java.lang.StringgetFallbackPrefix()Get the prefix to emit in front of the fallback date.java.lang.StringgetFallbackValue()Get the Velocity context key to use as source for the date.java.lang.StringgetFormat()Get date format to use.java.lang.StringgetPosition()Get where to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it).java.lang.StringgetPrefix()Get the prefix to emit in front of the date.java.lang.StringgetTimezone()Get the timezone to use.java.lang.StringgetValue()Get the Velocity context key to use as source for the date.inthashCode()Method hashCode.voidsetFallbackPrefix(java.lang.String fallbackPrefix)Set the prefix to emit in front of the fallback date.voidsetFallbackValue(java.lang.String fallbackValue)Set the Velocity context key to use as source for the date.voidsetFormat(java.lang.String format)Set date format to use.voidsetPosition(java.lang.String position)Set where to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it).voidsetPrefix(java.lang.String prefix)Set the prefix to emit in front of the date.voidsetTimezone(java.lang.String timezone)Set the timezone to use.voidsetValue(java.lang.String value)Set the Velocity context key to use as source for the date.java.lang.StringtoString()Method toString.
-
-
-
Method Detail
-
clone
public PublishDate clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- PublishDate
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- a other object.- Returns:
- boolean
-
getFallbackPrefix
public java.lang.String getFallbackPrefix()
Get the prefix to emit in front of the fallback date. When starting withtemplate.it is assumed to reference a key from thesite-renderer.properties, otherwise it is a literal value.- Returns:
- String
-
getFallbackValue
public java.lang.String getFallbackValue()
Get the Velocity context key to use as source for the date. Used as fallback when the context given in "value" is not available. Must have a value of typejava.util.Date. This is useful when the context given in "value" is only available for Doxia source documents (but not for reports).- Returns:
- String
-
getFormat
public java.lang.String getFormat()
Get date format to use.- Returns:
- String
-
getPosition
public java.lang.String getPosition()
Get where to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it).- Returns:
- String
-
getPrefix
public java.lang.String getPrefix()
Get the prefix to emit in front of the date. When starting withtemplate.it is assumed to reference a key from thesite-renderer.properties, otherwise it is a literal value.- Returns:
- String
-
getTimezone
public java.lang.String getTimezone()
Get the timezone to use. Usesystemfor the default locale for this instance of the Java Virtual Machine. Refer tojava.util.TimeZonefor details.- Returns:
- String
-
getValue
public java.lang.String getValue()
Get the Velocity context key to use as source for the date. Usually one of "publishDate" or "scmLastModified". Must have a value of typejava.util.Date.- Returns:
- String
-
hashCode
public int hashCode()
Method hashCode.- Overrides:
hashCodein classjava.lang.Object- Returns:
- int
-
setFallbackPrefix
public void setFallbackPrefix(java.lang.String fallbackPrefix)
Set the prefix to emit in front of the fallback date. When starting withtemplate.it is assumed to reference a key from thesite-renderer.properties, otherwise it is a literal value.- Parameters:
fallbackPrefix- a fallbackPrefix object.
-
setFallbackValue
public void setFallbackValue(java.lang.String fallbackValue)
Set the Velocity context key to use as source for the date. Used as fallback when the context given in "value" is not available. Must have a value of typejava.util.Date. This is useful when the context given in "value" is only available for Doxia source documents (but not for reports).- Parameters:
fallbackValue- a fallbackValue object.
-
setFormat
public void setFormat(java.lang.String format)
Set date format to use.- Parameters:
format- a format object.
-
setPosition
public void setPosition(java.lang.String position)
Set where to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it).- Parameters:
position- a position object.
-
setPrefix
public void setPrefix(java.lang.String prefix)
Set the prefix to emit in front of the date. When starting withtemplate.it is assumed to reference a key from thesite-renderer.properties, otherwise it is a literal value.- Parameters:
prefix- a prefix object.
-
setTimezone
public void setTimezone(java.lang.String timezone)
Set the timezone to use. Usesystemfor the default locale for this instance of the Java Virtual Machine. Refer tojava.util.TimeZonefor details.- Parameters:
timezone- a timezone object.
-
setValue
public void setValue(java.lang.String value)
Set the Velocity context key to use as source for the date. Usually one of "publishDate" or "scmLastModified". Must have a value of typejava.util.Date.- Parameters:
value- a value object.
-
toString
public java.lang.String toString()
Method toString.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-