public abstract class ClientGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
alreadyGenerated |
protected static String |
ARTIFACT_NAME |
protected org.glassfish.hk2.api.ServiceLocator |
habitat |
protected List<String> |
messages |
protected String |
versionString |
| Constructor and Description |
|---|
ClientGenerator(org.glassfish.hk2.api.ServiceLocator habitat) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
alreadyGenerated(String className) |
void |
generateClasses() |
protected void |
generateCollectionLeafResource(ClientClassWriter writer,
String xmlName) |
protected void |
generateCommandMethods(ClientClassWriter writer,
String className) |
protected void |
generateGetPostCommandMethod(ClientClassWriter writer,
String resourceName) |
protected void |
generateLeafResource(ClientClassWriter writer,
String xmlName) |
void |
generateList(ClientClassWriter writer,
org.jvnet.hk2.config.ConfigModel model) |
protected String |
generateParameterName(CommandModel.ParamModel model) |
void |
generateSingle(org.jvnet.hk2.config.ConfigModel model) |
abstract Map<String,URI> |
getArtifact() |
org.glassfish.hk2.api.ServiceLocator |
getBaseServiceLocator() |
abstract ClientClassWriter |
getClassWriter(org.jvnet.hk2.config.ConfigModel model,
String className,
Class parent) |
protected CommandModel |
getCommandModel(String commandName) |
List<String> |
getMessages() |
protected void |
processAttributes(ClientClassWriter writer,
org.jvnet.hk2.config.ConfigModel model,
Set<String> processed) |
protected Set<String> |
processElements(ClientClassWriter writer,
org.jvnet.hk2.config.ConfigModel model) |
protected void |
processNonLeafChildConfigModel(ClientClassWriter writer,
org.jvnet.hk2.config.ConfigModel childConfigModel,
org.jvnet.hk2.config.ConfigModel.Property childElement) |
protected org.glassfish.hk2.api.ServiceLocator habitat
protected String versionString
protected static final String ARTIFACT_NAME
public ClientGenerator(org.glassfish.hk2.api.ServiceLocator habitat)
public abstract ClientClassWriter getClassWriter(org.jvnet.hk2.config.ConfigModel model, String className, Class parent)
public void generateClasses()
public org.glassfish.hk2.api.ServiceLocator getBaseServiceLocator()
public void generateSingle(org.jvnet.hk2.config.ConfigModel model)
public void generateList(ClientClassWriter writer, org.jvnet.hk2.config.ConfigModel model)
protected void generateGetPostCommandMethod(ClientClassWriter writer, String resourceName)
protected void generateCommandMethods(ClientClassWriter writer, String className)
protected void processAttributes(ClientClassWriter writer, org.jvnet.hk2.config.ConfigModel model, Set<String> processed)
protected String generateParameterName(CommandModel.ParamModel model)
protected CommandModel getCommandModel(String commandName)
protected Set<String> processElements(ClientClassWriter writer, org.jvnet.hk2.config.ConfigModel model)
protected void generateCollectionLeafResource(ClientClassWriter writer, String xmlName)
protected void generateLeafResource(ClientClassWriter writer, String xmlName)
protected void processNonLeafChildConfigModel(ClientClassWriter writer, org.jvnet.hk2.config.ConfigModel childConfigModel, org.jvnet.hk2.config.ConfigModel.Property childElement)
protected boolean alreadyGenerated(String className)
Copyright © 2017. All rights reserved.