object TypedDefinitions
Convenience methods for working with Typed Definitions.
- Alphabetic
- By Inheritance
- TypedDefinitions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
typeName[K <: ScalaUnionTemplate](memberCompanion: UnionMemberCompanion[K]): String
Gets the typed definition (or flat typed definition) "typeName" of a Courier union member's companion object.
Gets the typed definition (or flat typed definition) "typeName" of a Courier union member's companion object.
Example:
TypedDefinitions.typeName(ExampleUnion.AlphaMember)See
typeName(ScalaUnionTemplate)for more details. -
def
typeName(member: ScalaUnionTemplate): String
Gets the typed definition (or flat typed definition) "typeName" of a Courier union member instance.
Gets the typed definition (or flat typed definition) "typeName" of a Courier union member instance.
The provided type must be a properly structured typed definition (or flat typed definition). Namely:
- The union must be declared within a declaration of a typeref - The typeref must have a 'typedDefinition' or 'flatTypedDefinition' schema property - The schema property must contain a complete mapping of member keys (fully qualified Courier type name) to 'typeName' for all members of the union
If any of these conditions are not met, a IllegalArgumentException is thrown.
For example, given the schema:
namespace org.example @@typedDefinition = { "org.example.Alpha": "alpha", "org.example.Beta": "beta" } typeref ExampleUnion = union[ record Alpha {} record Beta {} ]The Scala expression:
val member = ExampleUnion.AlphaMember(Alpha()) TypedDefinitions.typeName(member)returns "alpha"
-
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( ... ) @native()