public class SiteModel extends Object implements Serializable, Cloneable
<site>
element is the root of
the site decoration descriptor.Modifier and Type | Field and Description |
---|---|
static String |
MERGE |
static String |
OVERRIDE |
Constructor and Description |
---|
SiteModel() |
Modifier and Type | Method and Description |
---|---|
void |
addPoweredBy(Logo logo)
Method addPoweredBy.
|
SiteModel |
clone()
Method clone.
|
boolean |
equals(Object other)
Method equals.
|
Banner |
getBannerLeft()
Get banner logo on the masthead of the site to the left.
|
Banner |
getBannerRight()
Get banner logo on the masthead of the site to the right.
|
Body |
getBody()
Get the main site content.
|
String |
getCombineSelf()
Get whether to inherit configuration from a parent project
site descriptor (
merge )
or not (override ). |
Object |
getCustom()
Get custom configuration for use with customized Velocity
templates.
|
Object |
getCustomChild(String path) |
String |
getCustomValue(String path) |
String |
getCustomValue(String path,
String defaultValue) |
String |
getEdit()
Get the base url to edit Doxia document sources.
|
long |
getLastModified()
Get timestamp of the last modification of this site model.
|
Menu |
getMenuRef(String key) |
List<Menu> |
getMenus() |
String |
getModelEncoding()
Get the modelEncoding field.
|
String |
getName()
Get the full name of the project site.
|
List<Logo> |
getPoweredBy()
Method getPoweredBy.
|
PublishDate |
getPublishDate() |
Skin |
getSkin()
Get the artifact containing the skin for the site.
|
Version |
getVersion() |
int |
hashCode()
Method hashCode.
|
boolean |
isDefaultPublishDate() |
boolean |
isDefaultVersion() |
boolean |
isLink(String href) |
boolean |
isMergeParent() |
boolean |
isRequireParent()
Get whether this "site.xml" should inherit from a parent
"site.xml".
|
void |
removeMenuRef(String key) |
void |
removePoweredBy(Logo logo)
Method removePoweredBy.
|
void |
setBannerLeft(Banner bannerLeft)
Set banner logo on the masthead of the site to the left.
|
void |
setBannerRight(Banner bannerRight)
Set banner logo on the masthead of the site to the right.
|
void |
setBody(Body body)
Set the main site content.
|
void |
setCombineSelf(String combineSelf)
Set whether to inherit configuration from a parent project
site descriptor (
merge )
or not (override ). |
void |
setCustom(Object custom)
Set custom configuration for use with customized Velocity
templates.
|
void |
setEdit(String edit)
Set the base url to edit Doxia document sources.
|
void |
setLastModified(long lastModified)
Set timestamp of the last modification of this site model.
|
void |
setModelEncoding(String modelEncoding)
Set the modelEncoding field.
|
void |
setName(String name)
Set the full name of the project site.
|
void |
setPoweredBy(List<Logo> poweredBy)
Set powered by logos list.
|
void |
setPublishDate(PublishDate publishDate)
Set modify the date published display properties.
|
void |
setRequireParent(boolean requireParent)
Set whether this "site.xml" should inherit from a parent
"site.xml".
|
void |
setSkin(Skin skin)
Set the artifact containing the skin for the site.
|
void |
setVersion(Version version)
Set modify the version published display properties.
|
String |
toString()
Method toString.
|
public static final String MERGE
public static final String OVERRIDE
public void addPoweredBy(Logo logo)
logo
- a logo object.public boolean equals(Object other)
public Banner getBannerLeft()
public Banner getBannerRight()
public Body getBody()
public String getCombineSelf()
merge
)
or not (override
).public Object getCustom()
$site.custom
variable as DOM content.
Example: $site.custom.getChild(
'customElement' ).getValue()
public String getEdit()
${project.scm.url}
value should do the job.public long getLastModified()
public String getModelEncoding()
public String getName()
public Skin getSkin()
public boolean isRequireParent()
public void removePoweredBy(Logo logo)
logo
- a logo object.public void setBannerLeft(Banner bannerLeft)
bannerLeft
- a bannerLeft object.public void setBannerRight(Banner bannerRight)
bannerRight
- a bannerRight object.public void setBody(Body body)
body
- a body object.public void setCombineSelf(String combineSelf)
merge
)
or not (override
).combineSelf
- a combineSelf object.public void setCustom(Object custom)
$site.custom
variable as DOM content.
Example: $site.custom.getChild(
'customElement' ).getValue()
custom
- a custom object.public void setEdit(String edit)
${project.scm.url}
value should do the job.edit
- a edit object.public void setLastModified(long lastModified)
lastModified
- a lastModified object.public void setModelEncoding(String modelEncoding)
modelEncoding
- a modelEncoding object.public void setName(String name)
name
- a name object.public void setPoweredBy(List<Logo> poweredBy)
poweredBy
- a poweredBy object.public void setPublishDate(PublishDate publishDate)
publishDate
- a publishDate object.public void setRequireParent(boolean requireParent)
requireParent
- a requireParent object.public void setSkin(Skin skin)
skin
- a skin object.public void setVersion(Version version)
version
- a version object.public String toString()
public boolean isMergeParent()
public PublishDate getPublishDate()
public boolean isDefaultPublishDate()
public Version getVersion()
public boolean isDefaultVersion()
public Menu getMenuRef(String key)
key
- not nullpublic void removeMenuRef(String key)
key
- not nullpublic boolean isLink(String href)
SiteUtils.isLink(java.lang.String)
public Object getCustomChild(String path)
SiteUtils.getCustomChild(org.codehaus.plexus.util.xml.Xpp3Dom, java.lang.String)
public String getCustomValue(String path)
SiteUtils.getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom, java.lang.String)
public String getCustomValue(String path, String defaultValue)
SiteUtils.getCustomValue(org.codehaus.plexus.util.xml.Xpp3Dom, java.lang.String)
Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.