play.boilerplate.generators

GeneratorUtils

object GeneratorUtils extends StringUtils with DefinitionsSupport

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GeneratorUtils
  2. DefinitionsSupport
  3. ObjectSupport
  4. EnumerationsSupport
  5. BaseTypesSupport
  6. StringUtils
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Constraint extends AnyRef

    Definition Classes
    ObjectSupport
  2. case class ListConstraint(constraints: Seq[DefinitionsSupport.Constraint], tpe: treehugger.Forest.Type) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  3. case class MapConstraint(constraints: Seq[DefinitionsSupport.Constraint], tpe: treehugger.Forest.Type) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  4. case class MaxLength(length: Int) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  5. case class Maximum(value: Any) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  6. case class MethodParam(valDef: treehugger.Forest.ValDef, fullQualified: treehugger.Forest.ValDef, additionalDef: Seq[treehugger.Forest.Tree], implicits: Seq[treehugger.Forest.Tree], defaultValue: Option[treehugger.Forest.Tree]) extends Product with Serializable

  7. case class MimeTypeSupport(requestBody: treehugger.Forest.Tree, deserialize: (treehugger.Forest.Type) ⇒ treehugger.Forest.Tree, serialize: (treehugger.Forest.Type) ⇒ treehugger.Forest.Tree) extends Product with Serializable

  8. case class MinLength(length: Int) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  9. case class Minimum(value: Any) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  10. case class ObjectJson(reads: treehugger.Forest.Tree, writes: treehugger.Forest.Tree) extends Product with Serializable

    Definition Classes
    ObjectSupport
  11. case class ObjectProperty(name: String, support: TypeSupport, noOptType: treehugger.Forest.Type, isOpt: Boolean, defaultValue: Option[treehugger.Forest.Literal], constraints: Seq[DefinitionsSupport.Constraint]) extends Product with Serializable

    Definition Classes
    ObjectSupport
  12. case class ObjectPropertyJson(name: String, reads: treehugger.Forest.Enumerator, writes: treehugger.Forest.Tree) extends Product with Serializable

    Definition Classes
    ObjectSupport
  13. case class Pattern(pattern: String) extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final val ACTION_ANYCONTENT: treehugger.Forest.Type

  7. final val ACTION_EMPTY: treehugger.Forest.Type

  8. object Email extends DefinitionsSupport.Constraint with Product with Serializable

    Definition Classes
    ObjectSupport
  9. final def FUTURE(tpe: treehugger.Forest.Type): treehugger.Forest.Type

  10. final def IDENTITY(tpe: treehugger.Forest.Type): treehugger.Forest.Tree

  11. final def JSON_TO_TYPE(tpe: treehugger.Forest.Type): treehugger.Forest.Tree

  12. final val MIME_TYPE_JSON: String("application/json")

  13. final val PARSER_ANYCONTENT: treehugger.Forest.Tree

  14. final val PARSER_EMPTY: treehugger.Forest.Tree

  15. final val REQUEST_AS_JSON: treehugger.Forest.Tree

  16. final val REQUEST_EMPTY: treehugger.Forest.Tree

  17. final def TYPE_TO_JSON(tpe: treehugger.Forest.Type): treehugger.Forest.Tree

  18. val UnexpectedResult: treehugger.Forest.TypeName

  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def classNameToPath(packageName: String, className: String, ext: String): String

    Definition Classes
    StringUtils
  21. def cleanDuplicateSlash(s: String): String

    Definition Classes
    StringUtils
  22. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. def collectPropertyConstraints(property: Definition)(implicit ctx: GeneratorContext): Seq[Constraint]

    Definition Classes
    ObjectSupport
  24. def composeClassName(objName: String): String

    Definition Classes
    ObjectSupport
  25. def composeFullClassName(objName: String, context: DefinitionContext)(implicit ctx: GeneratorContext): String

    Definition Classes
    ObjectSupport
  26. def composeInterfaceName(objName: String): String

    Definition Classes
    ObjectSupport
  27. def composeName(parts: String*): String

    Definition Classes
    StringUtils
  28. def decapitalize(s: String): String

    Definition Classes
    StringUtils
  29. def doRoutesUrl(basePath: String, path: Iterable[PathPart], operation: Operation): String

  30. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  32. def filterNonEmptyTree(trees: Seq[treehugger.Forest.Tree]): Seq[treehugger.Forest.Tree]

  33. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def generateAcceptMatcher: treehugger.Forest.Tree

  35. def generateClassParams(properties: Map[String, Definition])(implicit ctx: GeneratorContext): Seq[ObjectProperty]

    Definition Classes
    ObjectSupport
  36. def generateInterfaceDefs(interfaceName: treehugger.Forest.Symbol, params: Seq[ObjectProperty])(implicit ctx: GeneratorContext): TypeSupportDefs

    Definition Classes
    ObjectSupport
  37. def generateObject(fullClassName: String, params: Seq[ObjectProperty], parents: Seq[treehugger.Forest.Symbol], context: DefinitionContext)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    ObjectSupport
  38. def generateObjectDefs(objectClass: treehugger.Forest.Symbol, params: Seq[ObjectProperty], parents: Seq[treehugger.Forest.Symbol])(implicit ctx: GeneratorContext): Seq[TypeSupportDefs]

    Definition Classes
    ObjectSupport
  39. def generateObjectJson(objectClass: treehugger.Forest.Symbol, properties: Seq[ObjectProperty])(implicit ctx: GeneratorContext): ObjectJson

    Definition Classes
    ObjectSupport
  40. def generateObjectQueryBindable(objectClass: treehugger.Forest.Symbol, properties: Seq[ObjectProperty])(implicit ctx: GeneratorContext): treehugger.Forest.Tree

    Definition Classes
    ObjectSupport
  41. def generateObjectReads(modelName: String, modelType: treehugger.Forest.Type, properties: Seq[ObjectPropertyJson])(implicit ctx: GeneratorContext): treehugger.Forest.Tree

    Definition Classes
    ObjectSupport
  42. def generateObjectWrites(modelName: String, modelType: treehugger.Forest.Type, properties: Seq[ObjectPropertyJson])(implicit ctx: GeneratorContext): treehugger.Forest.Tree

    Definition Classes
    ObjectSupport
  43. def getBodyParameters(path: Path, operation: Operation)(implicit ctx: GeneratorContext): Map[String, MethodParam]

  44. def getBooleanSupport(bool: BooleanDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  45. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  46. def getComplexObjectSupport(complex: ComplexObjectDefinition, context: DefinitionContext)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    ObjectSupport
  47. def getDateSupport(date: DateDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  48. def getDateTimeSupport(dt: DateTimeDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  49. def getDecimalSupport(decimal: DecimalDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  50. def getDefaultValue(definition: Definition): Option[treehugger.Forest.Literal]

  51. def getDoubleSupport(double: DoubleDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  52. def getEmailSupport(str: EmailDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  53. def getEnumSupport(enum: EnumDefinition, context: DefinitionContext)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    EnumerationsSupport
  54. def getFileSupport(file: FileDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  55. def getFloatSupport(float: FloatDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  56. def getIntegerSupport(int: IntegerDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  57. def getLongSupport(long: LongDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  58. def getMethodParameters(path: Path, operation: Operation)(implicit ctx: GeneratorContext): Map[String, MethodParam]

  59. def getMimeTypeSupport: PartialFunction[String, MimeTypeSupport]

  60. def getObjectSupport(obj: ObjectDefinition, context: DefinitionContext)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    ObjectSupport
  61. def getOperationResponseTraitName(operationId: String): String

  62. def getParamImplicits(param: Parameter, support: TypeSupport): Seq[treehugger.Forest.Tree]

  63. def getReadsConstraint(constraint: Constraint, noOptType: treehugger.Forest.Type): treehugger.Forest.Tree

    Definition Classes
    ObjectSupport
  64. def getResponseClassName(operationId: String, responseCode: ResponseCode): String

  65. def getSimpleTypeSupport(definition: SimpleDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  66. def getStatusByCode(code: Int): Option[String]

  67. def getStringSupport(str: StringDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  68. def getTypeSupport(definition: Definition, context: DefinitionContext = DefinitionContext.inline)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    DefinitionsSupport
  69. def getTypeSupportRef(reference: RefDefinition)(implicit ctx: GeneratorContext): TypeSupport

    Definition Classes
    DefinitionsSupport
  70. def getUUIDSupport(uuid: UUIDDefinition): TypeSupport

    Definition Classes
    BaseTypesSupport
  71. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  72. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  73. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  74. final def notify(): Unit

    Definition Classes
    AnyRef
  75. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  76. def objectNameFromFileName(fileName: String, obj: String, skipNotValidChars: Boolean = true): String

    Definition Classes
    StringUtils
  77. def padTo(n: Int, s: String): String

    Definition Classes
    StringUtils
  78. def sanitizeFileName(fileName: String): String

    Definition Classes
    StringUtils
  79. def stringToValidIdentifier(str: String, skipNotValidChars: Boolean): String

    Definition Classes
    StringUtils
  80. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  81. def toString(): String

    Definition Classes
    AnyRef → Any
  82. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DefinitionsSupport

Inherited from ObjectSupport

Inherited from EnumerationsSupport

Inherited from BaseTypesSupport

Inherited from StringUtils

Inherited from AnyRef

Inherited from Any

Ungrouped