Class SiteModel
java.lang.Object
org.apache.maven.doxia.site.SiteModel
- All Implemented Interfaces:
Serializable, Cloneable
The
<site> element is the root of
the site decoration descriptor.- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BannerBanner logo on the masthead of the site to the left.private BannerBanner logo on the masthead of the site to the right.private BodyThe main site content.private StringWhether to inherit configuration from a parent project site descriptor (merge) or not (override).private ObjectCustom configuration for use with customized Velocity templates.private StringThe base url to edit Doxia document sources.private longTimestamp of the last modification of this site model.static final Stringprivate StringField modelEncoding.private StringThe full name of the project site.static final StringField poweredBy.private PublishDateModify the date published display properties.private booleanWhether this "site.xml" should inherit from a parent "site.xml".private SkinThe artifact containing the skin for the site.private VersionModify the version published display properties. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPoweredBy(Logo logo) Method addPoweredBy.clone()Method clone.booleanMethod equals.Get banner logo on the masthead of the site to the left.Get banner logo on the masthead of the site to the right.getBody()Get the main site content.Get whether to inherit configuration from a parent project site descriptor (merge) or not (override).Get custom configuration for use with customized Velocity templates.getCustomChild(String path) getCustomValue(String path) getCustomValue(String path, String defaultValue) getEdit()Get the base url to edit Doxia document sources.longGet timestamp of the last modification of this site model.getMenuRef(String key) getMenus()Get the modelEncoding field.getName()Get the full name of the project site.Method getPoweredBy.getSkin()Get the artifact containing the skin for the site.inthashCode()Method hashCode.booleanbooleanbooleanbooleanbooleanGet whether this "site.xml" should inherit from a parent "site.xml".voidremoveMenuRef(String key) voidremovePoweredBy(Logo logo) Method removePoweredBy.voidsetBannerLeft(Banner bannerLeft) Set banner logo on the masthead of the site to the left.voidsetBannerRight(Banner bannerRight) Set banner logo on the masthead of the site to the right.voidSet the main site content.voidsetCombineSelf(String combineSelf) Set whether to inherit configuration from a parent project site descriptor (merge) or not (override).voidSet custom configuration for use with customized Velocity templates.voidSet the base url to edit Doxia document sources.voidsetLastModified(long lastModified) Set timestamp of the last modification of this site model.voidsetModelEncoding(String modelEncoding) Set the modelEncoding field.voidSet the full name of the project site.voidsetPoweredBy(List<Logo> poweredBy) Set powered by logos list.voidsetPublishDate(PublishDate publishDate) Set modify the date published display properties.voidsetRequireParent(boolean requireParent) Set whether this "site.xml" should inherit from a parent "site.xml".voidSet the artifact containing the skin for the site.voidsetVersion(Version version) Set modify the version published display properties.toString()Method toString.
-
Field Details
-
name
The full name of the project site. -
combineSelf
Whether to inherit configuration from a parent project site descriptor (merge) or not (override). -
requireParent
private boolean requireParentWhether this "site.xml" should inherit from a parent "site.xml". If set to "true" it fails the build in case a parent site descriptor cannot be retrieved. It does not necessarily need to be the direct parent but just a site descriptor anywhere in the parent hierarchy. -
bannerLeft
Banner logo on the masthead of the site to the left. -
bannerRight
Banner logo on the masthead of the site to the right. -
publishDate
Modify the date published display properties. -
version
Modify the version published display properties. -
edit
The base url to edit Doxia document sources. In general,${project.scm.url}value should do the job. -
poweredBy
-
skin
The artifact containing the skin for the site. -
body
The main site content. -
custom
Custom configuration for use with customized Velocity templates. Data from this field are accessible in Velocity template from$site.customvariable as DOM content. Example:$site.custom.getChild( 'customElement' ).getValue() -
lastModified
private long lastModifiedTimestamp of the last modification of this site model. -
modelEncoding
Field modelEncoding. -
MERGE
- See Also:
-
OVERRIDE
- See Also:
-
-
Constructor Details
-
SiteModel
public SiteModel()
-
-
Method Details
-
addPoweredBy
-
clone
-
equals
-
getBannerLeft
Get banner logo on the masthead of the site to the left.- Returns:
- Banner
-
getBannerRight
Get banner logo on the masthead of the site to the right.- Returns:
- Banner
-
getBody
-
getCombineSelf
Get whether to inherit configuration from a parent project site descriptor (merge) or not (override).- Returns:
- String
-
getCustom
Get custom configuration for use with customized Velocity templates. Data from this field are accessible in Velocity template from$site.customvariable as DOM content. Example:$site.custom.getChild( 'customElement' ).getValue()- Returns:
- Object
-
getEdit
Get the base url to edit Doxia document sources. In general,${project.scm.url}value should do the job.- Returns:
- String
-
getLastModified
public long getLastModified()Get timestamp of the last modification of this site model.- Returns:
- long
-
getModelEncoding
-
getName
-
getPoweredBy
-
getSkin
-
hashCode
-
isRequireParent
public boolean isRequireParent()Get whether this "site.xml" should inherit from a parent "site.xml". If set to "true" it fails the build in case a parent site descriptor cannot be retrieved. It does not necessarily need to be the direct parent but just a site descriptor anywhere in the parent hierarchy.- Returns:
- boolean
-
removePoweredBy
-
setBannerLeft
Set banner logo on the masthead of the site to the left.- Parameters:
bannerLeft- a bannerLeft object.
-
setBannerRight
Set banner logo on the masthead of the site to the right.- Parameters:
bannerRight- a bannerRight object.
-
setBody
-
setCombineSelf
Set whether to inherit configuration from a parent project site descriptor (merge) or not (override).- Parameters:
combineSelf- a combineSelf object.
-
setCustom
Set custom configuration for use with customized Velocity templates. Data from this field are accessible in Velocity template from$site.customvariable as DOM content. Example:$site.custom.getChild( 'customElement' ).getValue()- Parameters:
custom- a custom object.
-
setEdit
Set the base url to edit Doxia document sources. In general,${project.scm.url}value should do the job.- Parameters:
edit- a edit object.
-
setLastModified
public void setLastModified(long lastModified) Set timestamp of the last modification of this site model.- Parameters:
lastModified- a lastModified object.
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding- a modelEncoding object.
-
setName
Set the full name of the project site.- Parameters:
name- a name object.
-
setPoweredBy
-
setPublishDate
Set modify the date published display properties.- Parameters:
publishDate- a publishDate object.
-
setRequireParent
public void setRequireParent(boolean requireParent) Set whether this "site.xml" should inherit from a parent "site.xml". If set to "true" it fails the build in case a parent site descriptor cannot be retrieved. It does not necessarily need to be the direct parent but just a site descriptor anywhere in the parent hierarchy.- Parameters:
requireParent- a requireParent object.
-
setSkin
Set the artifact containing the skin for the site.- Parameters:
skin- a skin object.
-
setVersion
Set modify the version published display properties.- Parameters:
version- a version object.
-
toString
-
isMergeParent
public boolean isMergeParent() -
getPublishDate
-
isDefaultPublishDate
public boolean isDefaultPublishDate() -
getVersion
-
isDefaultVersion
public boolean isDefaultVersion() -
getMenuRef
-
removeMenuRef
- Parameters:
key- not null
-
getMenus
-
isLink
- Since:
- 1.7
- See Also:
-
getCustomChild
-
getCustomValue
-
getCustomValue
-