|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.tools.doclet.html.HtmlGenerator
org.infinispan.tools.doclet.config.AbstractConfigHtmlGenerator
org.infinispan.tools.doclet.config.ConfigHtmlGenerator
public class ConfigHtmlGenerator
Infinispan configuration reference guide generator
| Field Summary |
|---|
| Fields inherited from class org.infinispan.tools.doclet.config.AbstractConfigHtmlGenerator |
|---|
CONFIG_REF, CONFIG_REF_DESC_ATT, CONFIG_REF_NAME_ATT, CONFIG_REF_PARENT_NAME_ATT, rootDoc, sb |
| Constructor Summary | |
|---|---|
ConfigHtmlGenerator(String encoding,
String title,
String bottom,
String footer,
String header,
String metaDescription,
List<String> metaKeywords,
String classpath)
|
|
| Method Summary | |
|---|---|
protected List<Class<?>> |
getConfigBeans()
Returns a list of classes inspected for configuration reference javadoc tags. |
protected String |
getRootElementName()
Name of the root element in the schema |
protected String |
getSchemaFile()
Returns name of the schema file. |
protected String |
getTitle()
|
protected boolean |
postVisitNode(TreeNode n)
Callback invoked after visiting the specified node n. |
protected boolean |
preVisitNode(TreeNode n)
Callback invoked prior to visiting the specified node n. |
protected void |
preXMLTableOfContentsCreate(XSOMSchemaTreeWalker sw,
XMLTreeOutputWalker tw)
Invoked prior to creation of XML tree table of contents for configuration elements in schema |
| Methods inherited from class org.infinispan.tools.doclet.config.AbstractConfigHtmlGenerator |
|---|
generateContents, getAsInputStreamFromClassLoader, getRootDoc, getStringBuilder, lookupFile, parseTag, postXMLTableOfContentsCreate, setRootDoc |
| Methods inherited from class org.infinispan.tools.doclet.html.HtmlGenerator |
|---|
generateHtml, generateHtml, isValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigHtmlGenerator(String encoding,
String title,
String bottom,
String footer,
String header,
String metaDescription,
List<String> metaKeywords,
String classpath)
| Method Detail |
|---|
protected List<Class<?>> getConfigBeans()
throws Exception
AbstractConfigHtmlGenerator@configRef
javadoc tag.
Configuration class hierarchy should match configuration XML schema where each
configuration class matches to one Java class and each property of XML element matches to a
field of a class. On a class level @configRef javadoc tag should be placed on a
class definition that matches the target XML element. On a field level @configRef
javadoc tag should be placed on a field (anywhere in class hiearchy) that matches XML
property.
@configRef has two key value property pairs: name and desc. Name specifies the
name of the matching XML element in cases when @configRef decorates a class. If
@configRef decorates a Java field then name attribute should match XML attribute.
Note that name property is optional in cases when @configRef decorates a Java
field while it is mandatory in cases when @configRef decorates a configuration
class.
getConfigBeans in class AbstractConfigHtmlGenerator@configRef Javadoc tags.
Exceptionprotected String getSchemaFile()
AbstractConfigHtmlGeneratorNote that schema file should be placed on a classpath.
getSchemaFile in class AbstractConfigHtmlGeneratorprotected String getTitle()
getTitle in class AbstractConfigHtmlGeneratorprotected String getRootElementName()
AbstractConfigHtmlGenerator
getRootElementName in class AbstractConfigHtmlGenerator
protected void preXMLTableOfContentsCreate(XSOMSchemaTreeWalker sw,
XMLTreeOutputWalker tw)
AbstractConfigHtmlGenerator
preXMLTableOfContentsCreate in class AbstractConfigHtmlGeneratorprotected boolean preVisitNode(TreeNode n)
AbstractConfigHtmlGenerator
preVisitNode in class AbstractConfigHtmlGeneratorprotected boolean postVisitNode(TreeNode n)
AbstractConfigHtmlGenerator
postVisitNode in class AbstractConfigHtmlGenerator
|
Google Analytics | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||