public class SiteMap extends Object
| Constructor and Description |
|---|
SiteMap(String encoding,
org.codehaus.plexus.i18n.I18N i18n)
Constructor sets default values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generate(DecorationModel model,
File targetDir,
Locale locale)
Generates a sitemap.xml in targetDir/xdoc/.
|
String |
getEncoding()
Get the encoding to use when writing the output file.
|
org.codehaus.plexus.i18n.I18N |
getI18n()
Get the value of i18n.
|
void |
setEncoding(String enc)
Set the encoding to use when writing the output file.
|
void |
setI18n(org.codehaus.plexus.i18n.I18N i18n)
Set the value of i18n.
|
public SiteMap(String encoding, org.codehaus.plexus.i18n.I18N i18n)
encoding - the default encoding to use when writing the output file.i18n - the default I18N for translations.public org.codehaus.plexus.i18n.I18N getI18n()
public void setI18n(org.codehaus.plexus.i18n.I18N i18n)
i18n - new value of i18n.public String getEncoding()
public void setEncoding(String enc)
enc - new value of encoding.public void generate(DecorationModel model, File targetDir, Locale locale) throws IOException
model - the DecorationModel to extract the menus from.targetDir - the target output directory. The file will be created in targetDir/xdoc/.locale - the Locale for the result.IOException - if the file cannot be ceated.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.