Package org.apache.maven.doxia.site
Class MermaidConfiguration
- java.lang.Object
-
- org.apache.maven.doxia.site.MermaidConfiguration
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class MermaidConfiguration extends java.lang.Object implements java.io.Serializable, java.lang.CloneableThe configuration used for rendering Mermaid diagrams (https://mermaid.ai/open-source/) on client-side.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MermaidConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MermaidConfigurationclone()Method clone.booleanequals(java.lang.Object other)Method equals.java.lang.StringgetConfig()Get the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.ExternalJsgetExternalJs()Get the URL from which to request the javascript used for rendering the diagrams.inthashCode()Method hashCode.booleanisUseTiny()Get if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used.voidsetConfig(java.lang.String config)Set the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.voidsetExternalJs(ExternalJs externalJs)Set the URL from which to request the javascript used for rendering the diagrams.voidsetUseTiny(boolean useTiny)Set if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used.java.lang.StringtoString()Method toString.
-
-
-
Method Detail
-
clone
public MermaidConfiguration clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- MermaidConfiguration
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin classjava.lang.Object- Parameters:
other- a other object.- Returns:
- boolean
-
getConfig
public java.lang.String getConfig()
Get the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.- Returns:
- String
-
getExternalJs
public ExternalJs getExternalJs()
Get the URL from which to request the javascript used for rendering the diagrams. If not set an embedded version of Mermaid is used (which is automatically deployed to the site).- Returns:
- ExternalJs
-
hashCode
public int hashCode()
Method hashCode.- Overrides:
hashCodein classjava.lang.Object- Returns:
- int
-
isUseTiny
public boolean isUseTiny()
Get if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used. Only considered if "externalJsUrl" is not set.- Returns:
- boolean
-
setConfig
public void setConfig(java.lang.String config)
Set the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.- Parameters:
config- a config object.
-
setExternalJs
public void setExternalJs(ExternalJs externalJs)
Set the URL from which to request the javascript used for rendering the diagrams. If not set an embedded version of Mermaid is used (which is automatically deployed to the site).- Parameters:
externalJs- a externalJs object.
-
setUseTiny
public void setUseTiny(boolean useTiny)
Set if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used. Only considered if "externalJsUrl" is not set.- Parameters:
useTiny- a useTiny object.
-
toString
public java.lang.String toString()
Method toString.- Overrides:
toStringin classjava.lang.Object- Returns:
- String
-
-