ClaimedDefinitions

ClaimedDefinitions tracks handled objects: Types, Services, and Fields. A SchemaHandler is to first check if an object has already been claimed; if yes, it is not to handle it. Otherwise, the SchemaHandler is to handle the object and claim it. It is an error for a SchemaHandler to handle an object which has already been claimed.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun claim(member: ProtoMember)

Tracks that member has been handled.

fun claim(type: ProtoType)
fun claim(type: Type)

Tracks that type has been handled.

fun claim(service: Service)

Tracks that service has been handled.

Link copied to clipboard
operator fun contains(member: ProtoMember): Boolean

Returns true if member has already been handled.

operator fun contains(type: ProtoType): Boolean
operator fun contains(type: Type): Boolean

Returns true if type has already been handled.

operator fun contains(service: Service): Boolean

Returns true if service has already been handled.