Package org.apache.maven.doxia.document
Class DocumentCover
- java.lang.Object
-
- org.apache.maven.doxia.document.DocumentCover
-
- All Implemented Interfaces:
java.io.Serializable
public class DocumentCover extends java.lang.Object implements java.io.SerializableContains meta-data information for the document cover page.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentCover()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthor(DocumentAuthor documentAuthor)Method addAuthor.booleanequals(java.lang.Object other)Method equals.java.lang.StringgetAllAuthorNames()java.lang.StringgetAuthor()Get a shortcut for the unique author that appears on the cover page.java.util.List<DocumentAuthor>getAuthors()Method getAuthors.java.lang.StringgetCompanyLogo()Get the location of an image file that represents the company logo.java.lang.StringgetCompanyName()Get the name of the entity that is responsible for the content of the document, or a copyright holder.java.lang.StringgetCoverdate()Get the date to appear on the cover.java.util.DategetCoverDate()Get the date to appear on the cover.java.lang.StringgetCoverSubTitle()Get a sub-title to appear on the cover.java.lang.StringgetCoverTitle()Get the title to appear on the cover.java.lang.StringgetCoverType()Get the type of the document.java.lang.StringgetCoverVersion()Get the version of the project that appears on the cover page.java.lang.StringgetProjectLogo()Get the location of an image file that represents the project logo.java.lang.StringgetProjectName()Get the name of the project.inthashCode()Method hashCode.voidremoveAuthor(DocumentAuthor documentAuthor)Method removeAuthor.voidsetAuthor(java.lang.String author)Set a shortcut for the unique author that appears on the cover page.voidsetAuthors(java.util.List<DocumentAuthor> authors)Set the authors that appear on the cover page.voidsetCompanyLogo(java.lang.String companyLogo)Set the location of an image file that represents the company logo.voidsetCompanyName(java.lang.String companyName)Set the name of the entity that is responsible for the content of the document, or a copyright holder.voidsetCoverdate(java.lang.String coverdate)Set the date as String (recommended format is ISO 8601) to appear on the cover.voidsetCoverDate(java.util.Date coverDate)Set the date to appear on the cover.voidsetCoverSubTitle(java.lang.String coverSubTitle)Set a sub-title to appear on the cover.voidsetCoverTitle(java.lang.String coverTitle)Set the title to appear on the cover.voidsetCoverType(java.lang.String coverType)Set the type of the document.voidsetCoverVersion(java.lang.String coverVersion)Set the version of the project that appears on the cover page.voidsetProjectLogo(java.lang.String projectLogo)Set the location of an image file that represents the project logo.voidsetProjectName(java.lang.String projectName)Set the name of the project.java.lang.StringtoString()Method toString.
-
-
-
Method Detail
-
addAuthor
public void addAuthor(DocumentAuthor documentAuthor)
Method addAuthor.- Parameters:
documentAuthor- a documentAuthor object.
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- a other object.- Returns:
- boolean
-
getAuthor
public java.lang.String getAuthor()
Get a shortcut for the unique author that appears on the cover page. For more authors, you could use the <authors/> tag.- Returns:
- String
- Since:
- 1.1.1.
-
getAuthors
public java.util.List<DocumentAuthor> getAuthors()
Method getAuthors.- Returns:
- List
-
getCompanyLogo
public java.lang.String getCompanyLogo()
Get the location of an image file that represents the company logo.- Returns:
- String
-
getCompanyName
public java.lang.String getCompanyName()
Get the name of the entity that is responsible for the content of the document, or a copyright holder.- Returns:
- String
-
getCoverDate
public java.util.Date getCoverDate()
Get the date to appear on the cover. Use the ISO 8601 format "yyyy-MM-dd'T'HH:mm:ss.SSS" in xml.- Returns:
- Date
-
getCoverSubTitle
public java.lang.String getCoverSubTitle()
Get a sub-title to appear on the cover.- Returns:
- String
-
getCoverTitle
public java.lang.String getCoverTitle()
Get the title to appear on the cover.- Returns:
- String
-
getCoverType
public java.lang.String getCoverType()
Get the type of the document. This might be used on the cover page to specify the type of information contained in the document (eg 'User Guide', 'Manual', etc.).- Returns:
- String
-
getCoverVersion
public java.lang.String getCoverVersion()
Get the version of the project that appears on the cover page.- Returns:
- String
-
getProjectLogo
public java.lang.String getProjectLogo()
Get the location of an image file that represents the project logo.- Returns:
- String
-
getProjectName
public java.lang.String getProjectName()
Get the name of the project.- Returns:
- String
-
hashCode
public int hashCode()
Method hashCode.- Overrides:
hashCodein classjava.lang.Object- Returns:
- int
-
removeAuthor
public void removeAuthor(DocumentAuthor documentAuthor)
Method removeAuthor.- Parameters:
documentAuthor- a documentAuthor object.
-
setAuthor
public void setAuthor(java.lang.String author)
Set a shortcut for the unique author that appears on the cover page. For more authors, you could use the <authors/> tag.- Parameters:
author- a author object.- Since:
- 1.1.1.
-
setAuthors
public void setAuthors(java.util.List<DocumentAuthor> authors)
Set the authors that appear on the cover page. Only used if author is not given.- Parameters:
authors- a authors object.
-
setCompanyLogo
public void setCompanyLogo(java.lang.String companyLogo)
Set the location of an image file that represents the company logo.- Parameters:
companyLogo- a companyLogo object.
-
setCompanyName
public void setCompanyName(java.lang.String companyName)
Set the name of the entity that is responsible for the content of the document, or a copyright holder.- Parameters:
companyName- a companyName object.
-
setCoverDate
public void setCoverDate(java.util.Date coverDate)
Set the date to appear on the cover. Use the ISO 8601 format "yyyy-MM-dd'T'HH:mm:ss.SSS" in xml.- Parameters:
coverDate- a coverDate object.
-
setCoverSubTitle
public void setCoverSubTitle(java.lang.String coverSubTitle)
Set a sub-title to appear on the cover.- Parameters:
coverSubTitle- a coverSubTitle object.
-
setCoverTitle
public void setCoverTitle(java.lang.String coverTitle)
Set the title to appear on the cover.- Parameters:
coverTitle- a coverTitle object.
-
setCoverType
public void setCoverType(java.lang.String coverType)
Set the type of the document. This might be used on the cover page to specify the type of information contained in the document (eg 'User Guide', 'Manual', etc.).- Parameters:
coverType- a coverType object.
-
setCoverVersion
public void setCoverVersion(java.lang.String coverVersion)
Set the version of the project that appears on the cover page.- Parameters:
coverVersion- a coverVersion object.
-
setCoverdate
public void setCoverdate(java.lang.String coverdate)
Set the date as String (recommended format is ISO 8601) to appear on the cover. Only used ifcoverDateis not set.- Parameters:
coverdate- a coverdate object.- Since:
- 1.1.1.
-
setProjectLogo
public void setProjectLogo(java.lang.String projectLogo)
Set the location of an image file that represents the project logo.- Parameters:
projectLogo- a projectLogo object.
-
setProjectName
public void setProjectName(java.lang.String projectName)
Set the name of the project.- Parameters:
projectName- a projectName object.
-
toString
public java.lang.String toString()
Method toString.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
getAllAuthorNames
public java.lang.String getAllAuthorNames()
- Returns:
getAuthor()if the unique author name is defined. Otherwise, return all authors full names comma separated.- Since:
- 1.1.1
- See Also:
getAuthor(),getAuthors()
-
getCoverdate
public java.lang.String getCoverdate()
Get the date to appear on the cover.- Returns:
- the
getCoverDate()if setted, formatted using ISO-8601 English format, otherwise return thecoverdate. - Since:
- 1.1.1
- See Also:
getCoverDate()
-
-