play
.
boilerplate
.
generators
.
support
ObjectSupport
trait
ObjectSupport
extends
AnyRef
Self Type
DefinitionsSupport
Linear Supertypes
AnyRef
,
Any
Known Subclasses
DefinitionsSupport
,
GeneratorUtils
Ordering
Alphabetic
By inheritance
Inherited
ObjectSupport
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Type Members
sealed
trait
Constraint
extends
AnyRef
case class
ListConstraint
(
constraints:
Seq
[
DefinitionsSupport.Constraint
]
,
tpe:
treehugger.Forest.Type
)
extends
DefinitionsSupport.Constraint
with
Product
with
Serializable
case class
MapConstraint
(
constraints:
Seq
[
DefinitionsSupport.Constraint
]
,
tpe:
treehugger.Forest.Type
)
extends
DefinitionsSupport.Constraint
with
Product
with
Serializable
case class
MaxLength
(
length:
Int
)
extends
DefinitionsSupport.Constraint
with
Product
with
Serializable
case class
Maximum
(
value:
Any
)
extends
DefinitionsSupport.Constraint
with
Product
with
Serializable
case class
MinLength
(
length:
Int
)
extends
DefinitionsSupport.Constraint
with
Product
with
Serializable
case class
Minimum
(
value:
Any
)
extends
DefinitionsSupport.Constraint
with
Product
with
Serializable
case class
ObjectJson
(
reads:
treehugger.Forest.Tree
,
writes:
treehugger.Forest.Tree
)
extends
Product
with
Serializable
case class
ObjectProperty
(
name:
String
,
support:
TypeSupport
,
noOptType:
treehugger.Forest.Type
,
isOpt:
Boolean
,
isOverride:
Boolean
,
defaultValue:
Option
[
treehugger.Forest.Literal
]
,
constraints:
Seq
[
DefinitionsSupport.Constraint
]
)
extends
Product
with
Serializable
case class
ObjectPropertyJson
(
ident:
String
,
reads:
treehugger.Forest.Enumerator
,
writes:
treehugger.Forest.Tree
)
extends
Product
with
Serializable
case class
Pattern
(
pattern:
String
)
extends
DefinitionsSupport.Constraint
with
Product
with
Serializable
Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
object
Email
extends
DefinitionsSupport.Constraint
with
Product
with
Serializable
val
MaxJsonArity
:
Int
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
collectPropertyConstraints
(
property:
Definition
)
(
implicit
ctx:
GeneratorContext
)
:
Seq
[
DefinitionsSupport.Constraint
]
def
composeClassName
(
objName:
String
)
:
String
def
composeFullClassName
(
objName:
String
,
obj:
ComplexDefinition
)
(
implicit
ctx:
GeneratorContext
)
:
String
def
composeInterfaceName
(
objName:
String
)
:
String
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
generateClassParams
(
properties:
Map
[
String
,
Definition
]
)
(
implicit
ctx:
GeneratorContext
)
:
Seq
[
DefinitionsSupport.ObjectProperty
]
def
generateInterface
(
fullClassName:
String
,
params:
Seq
[
DefinitionsSupport.ObjectProperty
]
)
(
implicit
ctx:
GeneratorContext
)
:
TypeSupport
def
generateInterfaceDefs
(
interfaceName:
treehugger.Forest.Symbol
,
params:
Seq
[
DefinitionsSupport.ObjectProperty
]
,
children:
Seq
[
Definition
]
)
(
implicit
ctx:
GeneratorContext
)
:
TypeSupportDefs
def
generateInterfaceReads
(
interfaceName:
treehugger.Forest.Symbol
,
children:
Seq
[
Definition
]
)
(
implicit
ctx:
GeneratorContext
)
:
treehugger.Forest.Tree
def
generateInterfaceWrites
(
interfaceName:
treehugger.Forest.Symbol
,
children:
Seq
[
Definition
]
)
(
implicit
ctx:
GeneratorContext
)
:
treehugger.Forest.Tree
def
generateObject
(
definition:
Definition
,
fullClassName:
String
,
params:
Seq
[
DefinitionsSupport.ObjectProperty
]
,
parents:
Seq
[
treehugger.Forest.Symbol
]
,
context:
DefinitionContext
,
withDefinition:
Boolean
)
(
implicit
ctx:
GeneratorContext
)
:
TypeSupport
def
generateObjectDefs
(
objectClass:
treehugger.Forest.Symbol
,
properties:
Seq
[
DefinitionsSupport.ObjectProperty
]
,
parents:
Seq
[
treehugger.Forest.Symbol
]
,
withPropertiesDefs:
Boolean
=
true
)
(
implicit
ctx:
GeneratorContext
)
:
Seq
[
TypeSupportDefs
]
def
generateObjectJson
(
objectClass:
treehugger.Forest.Symbol
,
properties:
Seq
[
DefinitionsSupport.ObjectProperty
]
)
(
implicit
ctx:
GeneratorContext
)
:
DefinitionsSupport.ObjectJson
def
generateObjectQueryBindable
(
objectClass:
treehugger.Forest.Symbol
,
properties:
Seq
[
DefinitionsSupport.ObjectProperty
]
)
(
implicit
ctx:
GeneratorContext
)
:
treehugger.Forest.Tree
def
generateObjectQueryParameter
(
objectClass:
treehugger.Forest.Symbol
,
properties:
Seq
[
DefinitionsSupport.ObjectProperty
]
)
(
implicit
ctx:
GeneratorContext
)
:
treehugger.Forest.Tree
def
generateObjectReads
(
modelName:
String
,
modelType:
treehugger.Forest.Type
,
properties:
Seq
[
DefinitionsSupport.ObjectPropertyJson
]
)
(
implicit
ctx:
GeneratorContext
)
:
treehugger.Forest.Tree
def
generateObjectWrites
(
modelName:
String
,
modelType:
treehugger.Forest.Type
,
properties:
Seq
[
DefinitionsSupport.ObjectProperty
]
)
(
implicit
ctx:
GeneratorContext
)
:
treehugger.Forest.Tree
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getComplexObjectSupport
(
complex:
ComplexObjectDefinition
,
context:
DefinitionContext
)
(
implicit
ctx:
GeneratorContext
)
:
TypeSupport
def
getObjectSupport
(
obj:
ObjectDefinition
,
context:
DefinitionContext
)
(
implicit
ctx:
GeneratorContext
)
:
TypeSupport
def
getReadsConstraint
(
constraint:
DefinitionsSupport.Constraint
,
noOptType:
treehugger.Forest.Type
)
:
treehugger.Forest.Tree
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
AnyRef
Inherited from
Any
Ungrouped