toggle menu
modelix.core
8.16.0
common
switch theme
search in API
model-api-gen-runtime
/
org.modelix.metamodel
/
OptionalReferenceAccessor
Optional
Reference
Accessor
class
OptionalReferenceAccessor
<
SourceT
,
TargetT
:
ITypedNode
>
(
val
node
:
INode
,
val
role
:
IReferenceLink
,
val
targetType
:
KClass
<
TargetT
>
)
Members
Constructors
Optional
Reference
Accessor
Link copied to clipboard
constructor
(
node
:
INode
,
role
:
IReferenceLink
,
targetType
:
KClass
<
TargetT
>
)
Properties
node
Link copied to clipboard
val
node
:
INode
role
Link copied to clipboard
val
role
:
IReferenceLink
target
Type
Link copied to clipboard
val
targetType
:
KClass
<
TargetT
>
Functions
get
Value
Link copied to clipboard
operator
fun
getValue
(
thisRef
:
SourceT
,
property
:
KProperty
<
*
>
)
:
TargetT
?
set
Value
Link copied to clipboard
operator
fun
setValue
(
thisRef
:
SourceT
,
property
:
KProperty
<
*
>
,
target
:
TargetT
?
)