public class WikiAPIGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
ACTION_ENDPOINT |
protected static String |
OPTIONAL_MESSAGE |
protected static String |
OTHER_ENDPOINT |
protected static String |
VIEW_ENDPOINT |
Constructor and Description |
---|
WikiAPIGenerator() |
WikiAPIGenerator(String path,
boolean optional) |
Modifier and Type | Method and Description |
---|---|
protected void |
generateAPIFiles(ApiImplementor imp)
Generates the API client files of the given API implementor.
|
void |
generateAPIFiles(List<ApiImplementor> implementors)
Generates the wiki files of the given API implementors.
|
void |
generateCoreAPIFiles()
Generates the API client files for the core API implementors.
|
void |
generateWikiFiles(List<ApiImplementor> implementors)
Deprecated.
(2.6.0) Use
generateAPIFiles(List) instead. |
protected Path |
getDirectory()
Gets the directory where the API client files should be generated.
|
protected ResourceBundle |
getMessages()
Gets the messages for doc of the generated classes.
|
protected boolean |
isOptional()
If the API client files being generated are optional, that is, belong to an add-on.
|
static void |
main(String[] args) |
protected static final String OPTIONAL_MESSAGE
protected static final String VIEW_ENDPOINT
protected static final String ACTION_ENDPOINT
protected static final String OTHER_ENDPOINT
public WikiAPIGenerator()
public WikiAPIGenerator(String path, boolean optional)
@Deprecated public void generateWikiFiles(List<ApiImplementor> implementors) throws IOException
generateAPIFiles(List)
instead.implementors
- the implementorsIOException
- if an error occurred while generating the APIs.public void generateAPIFiles(List<ApiImplementor> implementors) throws IOException
implementors
- the API implementors, must not be null
IOException
- if an error occurred while writing the API filesprotected void generateAPIFiles(ApiImplementor imp) throws IOException
imp
- the API implementor, must not be null
IOException
- if an error occurred while writing the API filesprotected Path getDirectory()
protected boolean isOptional()
true
if the API client files are optional, false
otherwiseprotected ResourceBundle getMessages()
ResourceBundle
with the messages for docpublic void generateCoreAPIFiles() throws IOException
IOException
- if an error occurred while writing the API files