public class TextClassWriter extends Object implements ClassWriter
| Constructor and Description |
|---|
TextClassWriter(org.glassfish.hk2.api.ServiceLocator habitat,
File generationDir,
String className,
String baseClassName,
String resourcePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
createCommandResourceConstructor(String commandResourceClassName,
String commandName,
String httpMethod,
boolean linkedToParent,
CommandResourceMetaData.ParameterMetaData[] commandParams,
String commandDisplayName,
String commandAction) |
void |
createCustomResourceMapping(String resourceClassName,
String mappingPath) |
void |
createGetChildResource(String path,
String childResourceClassName) |
void |
createGetChildResourceForListResources(String keyAttributeName,
String childResourceClassName) |
void |
createGetCommandResource(String commandResourceClassName,
String resourcePath) |
void |
createGetCommandResourcePaths(List<CommandResourceMetaData> commandMetaData) |
void |
createGetDeleteCommand(String commandName) |
void |
createGetDeleteCommandForCollectionLeafResource(String deleteCommandName) |
void |
createGetDisplayNameForCollectionLeafResource(String displayName) |
void |
createGetPostCommand(String commandName) |
void |
createGetPostCommandForCollectionLeafResource(String postCommandName) |
void |
done()
Called to end creation of class being written by this writer
|
public TextClassWriter(org.glassfish.hk2.api.ServiceLocator habitat,
File generationDir,
String className,
String baseClassName,
String resourcePath)
throws IOException
className - Name of class to be generatedgenerationDir - Absolute location where it needs to be generatedbaseClassName - resourcePath - IOExceptionpublic void createCommandResourceConstructor(String commandResourceClassName, String commandName, String httpMethod, boolean linkedToParent, CommandResourceMetaData.ParameterMetaData[] commandParams, String commandDisplayName, String commandAction)
createCommandResourceConstructor in interface ClassWriterpublic void createGetCommandResource(String commandResourceClassName, String resourcePath)
createGetCommandResource in interface ClassWriterpublic void createCustomResourceMapping(String resourceClassName, String mappingPath)
createCustomResourceMapping in interface ClassWriterpublic void createGetCommandResourcePaths(List<CommandResourceMetaData> commandMetaData)
createGetCommandResourcePaths in interface ClassWriterpublic void createGetDeleteCommand(String commandName)
createGetDeleteCommand in interface ClassWriterpublic void createGetPostCommand(String commandName)
createGetPostCommand in interface ClassWriterpublic void createGetChildResource(String path, String childResourceClassName)
createGetChildResource in interface ClassWriterpublic void createGetChildResourceForListResources(String keyAttributeName, String childResourceClassName)
createGetChildResourceForListResources in interface ClassWriterpublic void createGetPostCommandForCollectionLeafResource(String postCommandName)
createGetPostCommandForCollectionLeafResource in interface ClassWriterpublic void createGetDeleteCommandForCollectionLeafResource(String deleteCommandName)
createGetDeleteCommandForCollectionLeafResource in interface ClassWriterpublic void createGetDisplayNameForCollectionLeafResource(String displayName)
createGetDisplayNameForCollectionLeafResource in interface ClassWriterpublic void done()
ClassWriterdone in interface ClassWriterCopyright © 2017. All rights reserved.