IPackage Interface
Namespace: NextDesign.Core
Description
Access object to package.
Belonging Area
Name | Description |
---|---|
Profile | API group to access profile. |
Inherit Base
Name | Description |
---|---|
INamedElement | Represents a nameable element. |
Property
Name | Description |
---|---|
FullName | Fully qualified name Returns the same value as Uri. |
OwnedClasses | List of managed classes |
OwnedEnums | List of managed enumeration types |
OwnedTypes | List of types (IClass, IEnum) directly managed by this package |
Parent | Parent package |
ProfileReference | Profile reference information referenced by this package Returns null if this package is not a profile reference package. |
SubPackages | List of subpackages |
Uri | Namespace Returns the same value as FullName. |
Method
Name | Description |
---|---|
GetAllClasses | Gets a list of classes defined including nested packages based on this package. *This includes classes directly managed by this package. |
GetAllEnums | Gets a list of enumerations defined including nested packages based on this package. *This includes enumerations directly managed by this package. |
GetAllSubPackages | Gets all subpackages nested based on this package. ※This package itself is not included. |
GetAllTypes | Gets a list of types defined in this package, including nested packages. ※Types directly managed by this package are also included. |
GetOwnerPackages | Gets 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. |