Package org.alfresco.rest.core.swagger
Class SwaggerModel
- java.lang.Object
-
- org.alfresco.rest.core.swagger.SwaggerModel
-
public class SwaggerModel extends java.lang.ObjectHandles swagger definitionsEntrymodel : swagger.getDefinitions().entrySet() - Author:
- Paul Brodner
-
-
Constructor Summary
Constructors Constructor Description SwaggerModel(java.util.Map.Entry<java.lang.String,io.swagger.models.Model> model, io.swagger.models.Swagger swagger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexist()voidgenerate()java.lang.StringgetName()java.lang.StringgetNameInTAS()java.io.FilegetPath()java.util.List<RestModelProperty>getProperties()voidsetProperties(java.util.List<RestModelProperty> properties)
-
-
-
Method Detail
-
exist
public boolean exist()
- Returns:
- boolean value if file is already generated in TAS, under 'models' package
-
getPath
public java.io.File getPath()
- Returns:
- the location of the model in TAS
-
getName
public java.lang.String getName()
- Returns:
- original model name as defined in Swagger YAML
-
getNameInTAS
public java.lang.String getNameInTAS()
- Returns:
- the name as it will be used in TAS
-
getProperties
public java.util.List<RestModelProperty> getProperties()
-
setProperties
public void setProperties(java.util.List<RestModelProperty> properties)
-
generate
public void generate() throws java.io.IOException, freemarker.template.TemplateException- Throws:
java.io.IOExceptionfreemarker.template.TemplateException
-
-