Java Runtime 3.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
com.schemarise.alfa.runtime.Union Interface Reference
Inheritance diagram for com.schemarise.alfa.runtime.Union:
com.schemarise.alfa.runtime.AlfaObject

Public Member Functions

String caseName ()
 
Object caseValue ()
 
default boolean isTagged ()
 
- Public Member Functions inherited from com.schemarise.alfa.runtime.AlfaObject
TypeDescriptor descriptor ()
 
Object get (String fieldName)
 
default void validate (com.schemarise.alfa.runtime.IBuilderConfig __builderConfig)
 

Detailed Description

Base interface of all generated Union definitions.

Member Function Documentation

◆ caseName()

String com.schemarise.alfa.runtime.Union.caseName ( )

Name of the union case/field that has been assigned for this union

Returns
Name of the assigned union field. If untagged union null is returned

◆ caseValue()

Object com.schemarise.alfa.runtime.Union.caseValue ( )

Value for the case/field that has been assigned a value

Returns
The value assigned to the field

The documentation for this interface was generated from the following file: