Trait Reference

From SDK version 1.2 this class extends CdmTraitReferenceBase instead of CdmObjectReferenceBase

This is the reference class for traits.

public class CdmTraitReference extends CdmTraitReferenceBase

Constructors

Name Description
CdmTraitReference(CdmCorpusContext, dynamic, bool, bool)
ctx: The corpus context.
trait: The trait that this trait reference is referencing.
simpleReference: A boolean that denotes whether this trait reference is simple named or not. The default value is false.
hasArguments: A boolean that denotes whether this trait reference has arguments.
Initializes a new instance of the CdmTraitReference class.

Properties

Name Type Description
IsFromProperty bool Denotes whether the trait was generated from a property or if it was directly loaded.
Arguments CdmArgumentCollection The trait reference's arguments.