|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.enunciate.modules.BasicDeploymentModule
org.codehaus.enunciate.modules.FreemarkerDeploymentModule
org.gedcomx.build.enunciate.GedcomxDeploymentModule
public class GedcomxDeploymentModule
The GEDCOM X deployment module handles the generation of the GEDCOM X documentation, validates common patterns, and supplies needed metadata for the namespaces.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.enunciate.modules.BasicDeploymentModule |
|---|
enunciate |
| Constructor Summary | |
|---|---|
GedcomxDeploymentModule()
|
|
| Method Summary | |
|---|---|
void |
addPrimaryNav(String label,
String href)
Add a primary nav element. |
protected Set<org.codehaus.enunciate.main.Artifact> |
buildBase()
Builds the base output directory. |
protected void |
doBuild()
|
void |
doFreemarkerGenerate()
|
protected Collection<org.codehaus.enunciate.contract.jaxb.RootElementDeclaration> |
gatherMediaTypeRoots(org.codehaus.enunciate.apt.EnunciateFreemarkerModel model)
|
Map<String,String> |
getBaseProjectUris()
|
protected URL |
getCodeTemplateURL()
|
org.apache.commons.digester.RuleSet |
getConfigurationRules()
|
String |
getDocsDir()
The subdirectory in the web application where the documentation will be put. |
protected URL |
getDocsTemplateURL()
|
String |
getIndexPageName()
The name of the index page. |
String |
getName()
|
int |
getOrder()
|
protected URL |
getRDFSchemaTemplateURL()
|
String |
getTitle()
The title of the documentation. |
org.codehaus.enunciate.contract.validation.Validator |
getValidator()
|
void |
init(org.codehaus.enunciate.main.Enunciate enunciate)
|
void |
initModel(org.codehaus.enunciate.apt.EnunciateFreemarkerModel model)
|
boolean |
isDisableProcessing()
Whether to disable processing. |
void |
putProjectBase(String id,
String uri)
|
void |
setDisableProcessing(boolean disableProcessing)
Whether to disable processing. |
void |
setDocsDir(String docsDir)
The subdirectory in the web application where the documentation will be put. |
void |
setIndexPageName(String indexPageName)
The name of the index page. |
void |
setProjectId(String projectId)
The id of the GEDCOM X project to be built. |
void |
setProjectLabelModifier(String projectLabelModifier)
|
void |
setStylesheet(String stylesheet)
|
void |
setTitle(String title)
The title of the documentation. |
void |
setTitleConditionally(String title)
Set the title for this project iff it hasn't already been set. |
| Methods inherited from class org.codehaus.enunciate.modules.FreemarkerDeploymentModule |
|---|
close, doGenerate, getConfiguration, getModel, getModelInternal, getObjectWrapper, getTemplateExceptionHandler, getTemplateLoader, processTemplate, processTemplate, processTemplate, processTemplate |
| Methods inherited from class org.codehaus.enunciate.modules.BasicDeploymentModule |
|---|
debug, doCompile, doPackage, getAliases, getBuildDir, getCompileDir, getEnunciate, getGenerateDir, getPackageDir, info, isDisabled, setBuildDir, setCompileDir, setDisabled, setGenerateDir, setPackageDir, step, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.enunciate.modules.DeploymentModule |
|---|
close, getAliases, isDisabled, step |
| Constructor Detail |
|---|
public GedcomxDeploymentModule()
| Method Detail |
|---|
public String getName()
getName in interface org.codehaus.enunciate.modules.DeploymentModulegetName in class org.codehaus.enunciate.modules.BasicDeploymentModulepublic int getOrder()
getOrder in interface org.codehaus.enunciate.modules.DeploymentModulegetOrder in class org.codehaus.enunciate.modules.BasicDeploymentModulepublic String getTitle()
getTitle in interface org.codehaus.enunciate.modules.DocumentationAwareModulepublic void setTitle(String title)
setTitle in interface org.codehaus.enunciate.modules.DocumentationAwareModuletitle - The title of the documentation.public void setTitleConditionally(String title)
setTitleConditionally in interface org.codehaus.enunciate.modules.ProjectTitleAwaretitle - The title.public String getDocsDir()
getDocsDir in interface org.codehaus.enunciate.modules.DocumentationAwareModulepublic String getIndexPageName()
getIndexPageName in interface org.codehaus.enunciate.modules.DocumentationAwareModulepublic void setIndexPageName(String indexPageName)
setIndexPageName in interface org.codehaus.enunciate.modules.DocumentationAwareModuleindexPageName - The name of the index page.public void setDocsDir(String docsDir)
setDocsDir in interface org.codehaus.enunciate.modules.DocumentationAwareModuledocsDir - The subdirectory in the web application where the documentation will be put.public boolean isDisableProcessing()
public void setDisableProcessing(boolean disableProcessing)
disableProcessing - Whether to disable processing.
public void addPrimaryNav(String label,
String href)
label - The label for the nav.href - The href.public void setProjectId(String projectId)
projectId - The id of the GEDCOM X project to be built.public void setProjectLabelModifier(String projectLabelModifier)
public void setStylesheet(String stylesheet)
protected URL getDocsTemplateURL()
protected URL getCodeTemplateURL()
protected URL getRDFSchemaTemplateURL()
public void init(org.codehaus.enunciate.main.Enunciate enunciate)
throws org.codehaus.enunciate.EnunciateException
init in interface org.codehaus.enunciate.modules.DeploymentModuleinit in class org.codehaus.enunciate.modules.BasicDeploymentModuleorg.codehaus.enunciate.EnunciateExceptionpublic void initModel(org.codehaus.enunciate.apt.EnunciateFreemarkerModel model)
initModel in interface org.codehaus.enunciate.apt.EnunciateModelAwareinitModel in class org.codehaus.enunciate.modules.FreemarkerDeploymentModuleprotected Collection<org.codehaus.enunciate.contract.jaxb.RootElementDeclaration> gatherMediaTypeRoots(org.codehaus.enunciate.apt.EnunciateFreemarkerModel model)
public void doFreemarkerGenerate()
throws org.codehaus.enunciate.EnunciateException,
IOException,
freemarker.template.TemplateException
doFreemarkerGenerate in class org.codehaus.enunciate.modules.FreemarkerDeploymentModuleorg.codehaus.enunciate.EnunciateException
IOException
freemarker.template.TemplateException
protected void doBuild()
throws org.codehaus.enunciate.EnunciateException,
IOException
doBuild in class org.codehaus.enunciate.modules.BasicDeploymentModuleorg.codehaus.enunciate.EnunciateException
IOException
protected Set<org.codehaus.enunciate.main.Artifact> buildBase()
throws IOException
IOExceptionpublic org.codehaus.enunciate.contract.validation.Validator getValidator()
getValidator in interface org.codehaus.enunciate.modules.DeploymentModulegetValidator in class org.codehaus.enunciate.modules.BasicDeploymentModulepublic org.apache.commons.digester.RuleSet getConfigurationRules()
getConfigurationRules in interface org.codehaus.enunciate.modules.DeploymentModulegetConfigurationRules in class org.codehaus.enunciate.modules.BasicDeploymentModulepublic Map<String,String> getBaseProjectUris()
public void putProjectBase(String id,
String uri)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||