Skip to main content

INamedElement Interface

Namespace: NextDesign.Core

Description

Represents a nameable element.

Belonging Area

NameDescription
ProfileA group of APIs to access the profile.

Inherit Base

NameDescription
IObjectRepresents an identifiable object.

Derived from

NameDescription
IConstraintAccess object to constraints.
IEnumLiteralAccess object to enumeration literals.
IPackageAccess object to packages.
IFieldAccess object to fields.
ITypeObject representing a type.

Property

NameDescription
BaseIdBase Identifier

If this element was added as a profile reference, returns the Identifier in the referenced profile.
If this element was not added as a profile reference, returns null.
DescriptionDescription
DisplayNameDisplay name
IsDisabledWhether this element is disabled
NameName

Method

NameDescription
GetProfileReferencePackageGets the profile reference package that manages this element.
If this element itself is a profile reference package, the element itself is retrieved.

If this element is an element with multiple profile references (an element with a profile reference and a profile reference added by a further profile reference), the package recorded as the base of the profile with dependencies in the profile reference information is retrieved.

Also, if this element is not an element under a profile reference package, the root package of the profile is retrieved.

This behavior means that an element defined in a profile will return the package corresponding to the root package of the profile that defined the element, regardless of how the profile was referenced.