|
xnsdoc 1.2.1 Java API |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
com.xnsdoc.Task
Adapter of the Processor to
Apache Ant.
Generates XML Schema documentation using the xnsdoc tool.
| Attribute | Description | Required |
| Exactly one of the these or nested <fileset> | ||
| file | shortcut for specifying a single file fileset | |
| dir | shortcut for specifying a single folder fileset | |
| out | destination directory for output files | Yes |
| xml | If output should be XML instead of HTML. (yes | no). Default is no | No |
| css | provide external CSS file | & |
| doctitle | Include title for the package index(first) page (html-code) | No |
| header | Include header text for each page (html-code) | No |
| footer | Include footer text for each page (html-code) | No |
| bottom | Include bottom text for each page (html-code) | No |
| failonerror | Log a warning message, but do not stop the build, when the file to copy does not exist or one of the nested filesets points to a directory that doesn't exist or an error occurs while copying. (yes | no). Default is no | No |
| verbose | Output messages about what xnsdoc is doing. (yes | no). Default is yes | No |
| quiet | Be quiet about what xnsdoc is doing. (yes | no). Default is no | No |
| debug | Output internal messages about what xnsdoc is doing. (yes | no). Default is no | No |
| hideTypes | hide types in overview pages. (yes | no). Default is no | No |
| hideGroups | hide groups in overview pages. (yes | no). Default is no | No |
| hideAttributes | hide attributes in overview pages. (yes | no). Default is no | No |
| hideNotations | hide notations in overview pages. (yes | no). Default is no | No |
FileSets are used to select sets of files to process. To use a fileset, the todir attribute must be set.
Same as the doctitle attribute, but you can nest text
inside the element this way.
Similar to <doctitle>.
Similar to <doctitle>.
Similar to <doctitle>.
<!--
Define xnsdoc task.
-->
<taskdef name="xnsdoc" classname="com.xnsdoc.Task"/>
<!--
Use xnsdoc task.
-->
<xnsdoc file="myschema.xsd"
out="doc/schema/myschema">
<doctitle><![CDATA[XML Schema for XML Schema]]></doctitle>
</xnsdoc>
| Nested Class Summary | |
static class |
Task.Html
An HTML fragment in a nested element of the task. |
| Constructor Summary | |
Task()
Default constructor. |
|
| Method Summary | |
void |
addBottom(Task.Html theBottom)
Set the text to be placed at the bottom of each output file. |
void |
addDoctitle(Task.Html text)
Add a document title to use for the overview page. |
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Adds a set of files to be deleted. |
void |
addFooter(Task.Html text)
Set the footer text to be placed at the bottom of each output file. |
void |
addHeader(Task.Html theHeader)
Set the header text to be placed at the top of each output file. |
void |
execute()
Execute the task. |
void |
setBottom(java.lang.String theBottom)
Set the text to be placed at the bottom of each output file. |
void |
setCss(java.lang.String css)
Setter method for css property. |
void |
setDebug(boolean isDebug)
Setter method for debug property. |
void |
setDir(java.lang.String theDir)
Setter method for dir property. |
void |
setDoctitle(java.lang.String theDoctitle)
Set the title of the generated overview page. |
void |
setFailonerror(boolean isFailonerror)
Setter method for failonerror attribute. |
void |
setFile(java.lang.String theFile)
Setter method for file property. |
void |
setFooter(java.lang.String theFooter)
Set the footer text to be placed at the bottom of each output file. |
void |
setHeader(java.lang.String theHeader)
Set the header text to be placed at the top of each output file. |
void |
setHideattributes(boolean hideAttributes)
Setter method for hideAttributes property. |
void |
setHidegroups(boolean hideGroups)
Setter method for hideGroups property. |
void |
setHidetypes(boolean hideTypes)
Setter method for hideTypes property. |
void |
setOut(java.lang.String out)
Setter method for out property. |
void |
setQuiet(boolean isQuiet)
Setter method for quiet property. |
void |
setVerbose(boolean isVerbose)
Setter method for verbose property. |
void |
setXml(boolean isXml)
Setter method for xml attribute. |
| Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Task()
| Method Detail |
public void addBottom(Task.Html theBottom)
theBottom - the bottom text.Processor.setBottom(String)public void addDoctitle(Task.Html text)
text - the HTML element containing the document title.Processor.setDoctitle(String)public void addFileset(org.apache.tools.ant.types.FileSet set)
set - the set of files to be deletedpublic void addFooter(Task.Html text)
text - the footer text.Processor.setFooter(String)public void addHeader(Task.Html theHeader)
theHeader - the header textProcessor.setHeader(String)
public void execute()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if execution of the task failedpublic void setBottom(java.lang.String theBottom)
theBottom - the bottom text.Processor.setBottom(String)public void setCss(java.lang.String css)
css - location of XML schemaProcessor.setCss(String)public void setDebug(boolean isDebug)
isDebug - output debug information or notpublic void setDir(java.lang.String theDir)
theDir - folder to search for schemasProcessor.setOut(String)public void setDoctitle(java.lang.String theDoctitle)
theDoctitle - the Document title.Processor.setDoctitle(String)public void setFailonerror(boolean isFailonerror)
isFailonerror - if should fail on error or notpublic void setFile(java.lang.String theFile)
theFile - location of XML schemaProcessor.setSchemaLocation(String)public void setFooter(java.lang.String theFooter)
theFooter - the footer text.Processor.setFooter(String)public void setHeader(java.lang.String theHeader)
theHeader - the header textProcessor.setHeader(String)public void setHideattributes(boolean hideAttributes)
hideAttributes - if attributes should be hidden or notProcessor.setHideAttributes(boolean)public void setHidegroups(boolean hideGroups)
hideGroups - if groups should be hidden or notProcessor.setHideGroups(boolean)public void setHidetypes(boolean hideTypes)
hideTypes - if types should be hidden or notProcessor.setHideTypes(boolean)public void setOut(java.lang.String out)
out - output folder to usepublic void setQuiet(boolean isQuiet)
isQuiet - be quiet or notpublic void setVerbose(boolean isVerbose)
isVerbose - be verbose or notpublic void setXml(boolean isXml)
isXml - booleanProcessor.setXml(boolean)
|
xnsdoc 1.2.1 Java API |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||