Editar

Partilhar via


Attribute Context

An attribute context provides more insight into an attribute's (parent/child) relationship. It's heavily used during an entity's attribute resolution and can contain the history of all changes that led to an attribute's resolution. Resolved concepts, such as resolved attributes, can contain attribute contexts to provide more insight into the original, non-resolved hierarchical attributes.

public class CdmAttributeContext extends CdmObjectDefinitionBase

CdmAttributeContext extends CdmObjectDefinition in Python.

Constructors

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

Properties

Name Type Description
Name string The attribute context's name.
Contents CdmCollection<CdmObject> The attribute context's content collection.
Definition CdmObjectReference The reference to the object this attribute context was defined from.
Parent CdmObjectReference The attribute context's parent.
Type CdmAttributeContextType? The attribute context's type.
AtCorpusPath string The path to the object declaration, relative to the declaration of the resolved entity. For an attribute context, we don't follow the standard path calculation behavior.

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