Skip to main content

IPackage Interface

Namespace: NextDesign.Core

Description

Access object to package.

Belonging Area

NameDescription
ProfileAPI group to access profile.

Inherit Base

NameDescription
INamedElementRepresents a nameable element.

Property

NameDescription
FullNameFully qualified name
Returns the same value as Uri.
OwnedClassesList of managed classes
OwnedEnumsList of managed enumeration types
OwnedTypesList of types (IClass, IEnum) directly managed by this package
ParentParent package
ProfileReferenceProfile reference information referenced by this package
Returns null if this package is not a profile reference package.
SubPackagesList of subpackages
UriNamespace
Returns the same value as FullName.

Method

NameDescription
GetAllClassesGets a list of classes defined including nested packages based on this package.
*This includes classes directly managed by this package.
GetAllEnumsGets a list of enumerations defined including nested packages based on this package.
*This includes enumerations directly managed by this package.
GetAllSubPackagesGets all subpackages nested based on this package.
※This package itself is not included.
GetAllTypesGets a list of types defined in this package, including nested packages.
※Types directly managed by this package are also included.
GetOwnerPackagesGets all packages that can be searched from this package in the parent direction.
Packages are ordered from the nearest parent to the root package of the profile.
GetTypeByName<T>Gets a type with the specified name from under this package.
If the type is not found, null is returned.

If recursive is set to true, subpackages are also searched in a depth-first search.
If multiple types with the specified name are found, the first type found is returned.
GetTypesByName<T>(IEnumerable<string>,bool)Gets all types under this package that match any of the specified names.
If multiple type names are specified, any type that matches will be included.

If recursive is set to true, subpackages will also be searched using a depth-first search.
GetTypesByName<T>(string,bool)Gets all types under this package that match any of the specified names.
You can specify multiple type names separated by commas for the type name.
If multiple type names are specified, any type that matches will be included.

If recursive is set to true, subpackages will also be searched using a depth-first search.