diff --git a/src/main/scala/com/wordnik/swagger/codegen/language/CodegenConfig.scala b/src/main/scala/com/wordnik/swagger/codegen/language/CodegenConfig.scala index a12ffab7fd8..16c4ec26ae1 100644 --- a/src/main/scala/com/wordnik/swagger/codegen/language/CodegenConfig.scala +++ b/src/main/scala/com/wordnik/swagger/codegen/language/CodegenConfig.scala @@ -21,9 +21,17 @@ import com.wordnik.swagger.core._ import scala.collection.mutable.{ HashMap, HashSet } abstract class CodegenConfig { + /* + * abstract methods + */ def packageName: String def templateDir: String def destinationDir: String + def toApiName(name: String): String + def apiNameFromPath(apiPath: String): String + def processApiMap(m: Map[String, AnyRef]): Map[String, AnyRef] = m + def processModelMap(m: Map[String, AnyRef]): Map[String, AnyRef] = m + val apiTemplateFiles = new HashMap[String, String]() val modelTemplateFiles = new HashMap[String, String]() @@ -42,9 +50,6 @@ abstract class CodegenConfig { def importMapping: Map[String, String] = Map() def escapeReservedWord(word: String) = word - def toApiName(name: String): String - def apiNameFromPath(apiPath: String): String - // only process these apis (by name) val apisToProcess = new HashSet[String] @@ -133,7 +138,4 @@ abstract class CodegenConfig { case _ => "_" } } - - def processApiMap(m: Map[String, AnyRef]): Map[String, AnyRef] - def processModelMap(m: Map[String, AnyRef]): Map[String, AnyRef] }