Editar

Partilhar via


Trait Group

SDK version 1.2

A trait group allows multiple traits to be combined into a single set identified by a name. Behavior is similar to that of data types and purposes, except that trait groups may be applied to any object, not just entity or type attributes.

public class CdmTraitGroupDefinition extends CdmObjectDefinitionBase

CdmTraitGroupDefinition extends CdmObjectDefinition in Python.

Constructors

Name Description
CdmTraitGroupDefinition(CdmCorpusContext, string)
ctx: The corpus context.
name: The trait group's name.
Initializes a new instance of the CdmTraitGroupDefinition class.

Properties

Name Type Description
TraitGroupName string The trait group's name.

Methods

Name Description Return Type
GetName() See CdmObjectDefinition.GetName(). string
IsDerivedFrom(string, ResolveOptions) See CdmObject.IsDerivedFrom(...). Always returns false because trait groups do not support inheritance. bool
Copy(ResolveOptions, CdmObject) See CdmObject.Copy(...). CdmObject
Validate() See CdmObject.Validate(). bool