Constant Entity
A constant entity provides a way of making an entity with records and an associated schema in a JSON file. We use these whenever we want to store a table of information inside a parameter of a trait. They are used in the enum definitions, in the localized display text, etc.
public class CdmConstantEntityDefinition extends CdmObjectDefinitionBase
CdmConstantEntityDefinition extends CdmObjectDefinition in Python.
Constructors
Name | Description |
---|---|
CdmConstantEntityDefinition(CdmCorpusContext, string) ctx: The corpus context. constantEntityName: The constant entity's name. |
Initializes a new instance of the CdmConstantEntityDefinition class. |
Properties
Name | Type | Description |
---|---|---|
ConstantEntityName | string | The constant entity's name. |
ConstantValues | List<List<string>> | The constant entity's constant values. |
EntityShape | CdmEntityReference | The constant entity shape. |
Methods
Name | Description | Return Type |
---|---|---|
GetName() | See CdmObjectDefinition.GetName(). | string |
IsDerivedFrom(string, ResolveOptions) | See CdmObject.IsDerivedFrom(...). | bool |
Copy(ResolveOptions, CdmObject) | See CdmObject.Copy(...). | CdmObject |
Validate() | See CdmObject.Validate(). | bool |