|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.tools.doclet.html.HtmlGenerator org.infinispan.tools.doclet.config.AbstractConfigHtmlGenerator
public abstract class AbstractConfigHtmlGenerator
Field Summary | |
---|---|
protected static String |
CONFIG_REF
|
protected static String |
CONFIG_REF_DESC_ATT
|
protected static String |
CONFIG_REF_NAME_ATT
|
protected static String |
CONFIG_REF_PARENT_NAME_ATT
|
protected com.sun.javadoc.RootDoc |
rootDoc
|
protected StringBuilder |
sb
|
Constructor Summary | |
---|---|
AbstractConfigHtmlGenerator(String encoding,
String title,
String bottom,
String footer,
String header,
String metaDescription,
List<String> metaKeywords)
|
Method Summary | |
---|---|
protected String |
generateContents()
|
protected InputStream |
getAsInputStreamFromClassLoader(String filename)
|
protected abstract List<Class<?>> |
getConfigBeans()
Returns a list of classes inspected for configuration reference javadoc tags. |
com.sun.javadoc.RootDoc |
getRootDoc()
|
protected abstract String |
getRootElementName()
Name of the root element in the schema |
protected abstract String |
getSchemaFile()
Returns name of the schema file. |
protected StringBuilder |
getStringBuilder()
|
protected String |
getTitle()
|
InputStream |
lookupFile(String filename)
|
Map<String,String> |
parseTag(String tag)
|
protected boolean |
postVisitNode(TreeNode n)
Callback invoked after visiting the specified node n. |
protected void |
postXMLTableOfContentsCreate(XSOMSchemaTreeWalker w,
XMLTreeOutputWalker tw)
Invoked after creation of XML tree table of contents for configuration elements in schema |
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 |
void |
setRootDoc(com.sun.javadoc.RootDoc rootDoc)
|
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 |
Field Detail |
---|
protected static final String CONFIG_REF
protected static final String CONFIG_REF_NAME_ATT
protected static final String CONFIG_REF_PARENT_NAME_ATT
protected static final String CONFIG_REF_DESC_ATT
protected com.sun.javadoc.RootDoc rootDoc
protected StringBuilder sb
Constructor Detail |
---|
public AbstractConfigHtmlGenerator(String encoding, String title, String bottom, String footer, String header, String metaDescription, List<String> metaKeywords)
Method Detail |
---|
protected abstract List<Class<?>> getConfigBeans() throws Exception
@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.
@configRef
Javadoc tags.
Exception
protected abstract String getSchemaFile()
Note that schema file should be placed on a classpath.
protected abstract String getRootElementName()
protected void preXMLTableOfContentsCreate(XSOMSchemaTreeWalker sw, XMLTreeOutputWalker tw)
sw
- tw
- protected void postXMLTableOfContentsCreate(XSOMSchemaTreeWalker w, XMLTreeOutputWalker tw)
sw
- tw
- protected boolean preVisitNode(TreeNode n)
n
-
protected boolean postVisitNode(TreeNode n)
n
-
protected String getTitle()
public com.sun.javadoc.RootDoc getRootDoc()
public void setRootDoc(com.sun.javadoc.RootDoc rootDoc)
public InputStream lookupFile(String filename)
protected InputStream getAsInputStreamFromClassLoader(String filename)
protected StringBuilder getStringBuilder()
protected String generateContents()
generateContents
in class HtmlGenerator
public Map<String,String> parseTag(String tag)
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |