removed overridden methods

This commit is contained in:
Tony Tam 2012-09-20 14:15:44 -07:00
parent f85c06628b
commit c3b36c6944

View File

@ -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]
}