Class PublishDate
java.lang.Object
org.apache.maven.doxia.site.PublishDate
- All Implemented Interfaces:
Serializable, Cloneable
Modify display properties for the date in the header/footer. By
default is the publish date.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe prefix to emit in front of the fallback date.private StringThe Velocity context key to use as source for the date.private StringDate format to use.private StringWhere to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it).private StringThe prefix to emit in front of the date.private StringThe timezone to use.private StringThe Velocity context key to use as source for the date. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Method clone.booleanMethod equals.Get the prefix to emit in front of the fallback date.Get the Velocity context key to use as source for the date.Get date format to use.Get where to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it).Get the prefix to emit in front of the date.Get the timezone to use.getValue()Get the Velocity context key to use as source for the date.inthashCode()Method hashCode.voidsetFallbackPrefix(String fallbackPrefix) Set the prefix to emit in front of the fallback date.voidsetFallbackValue(String fallbackValue) Set the Velocity context key to use as source for the date.voidSet date format to use.voidsetPosition(String position) Set where to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it).voidSet the prefix to emit in front of the date.voidsetTimezone(String timezone) Set the timezone to use.voidSet the Velocity context key to use as source for the date.toString()Method toString.
-
Field Details
-
position
Where to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it). -
format
Date format to use. -
timezone
The timezone to use. Usesystemfor the default locale for this instance of the Java Virtual Machine. Refer tojava.util.TimeZonefor details. -
value
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. -
prefix
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. -
fallbackValue
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). -
fallbackPrefix
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.
-
-
Constructor Details
-
PublishDate
public PublishDate()
-
-
Method Details
-
clone
-
equals
-
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
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
-
getPosition
Get where to place the date published ("left", "right", "navigation-top", "navigation-bottom", "bottom" or "none" to hide it).- Returns:
- 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
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
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
-
setFallbackPrefix
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
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
-
setPosition
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
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
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
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
-