IClass Interface
Namespace: NextDesign.Core
Description
An object that represents a component of a metamodel.
Belonging Area
Name | Description |
---|---|
Profile | A group of APIs to access profiles. |
Inherit Base
Name | Description |
---|---|
INamedElement | Represents a nameable element. |
Derived from
Name | Description |
---|---|
IRelationshipClass | Access object to related classes. |
Property
Name | Description |
---|---|
DeclaredFields | Gets the specific fields of this class. If there are no specific fields, returns an empty collection. |
Fields | Fields You can get all the fields that this class can handle. |
FullName | Fully qualified name By changing the value, you can move the package and change the class name. However, if the package to move to does not exist, an exception will be thrown. |
IsAbstract | Is an abstract class? |
Owner | Package Change the value to move the package, but it cannot be null. |
SuperClasses | Direct superclasses of this class Returns an empty collection if there are no direct superclasses. |
Method
Name | Description |
---|---|
AddSuperClass | Adds the specified class to the superclasses of this class. If the specified class is already a superclass of this class, nothing happens. |
AddSuperClasses | Adds the specified classes to the superclasses of this class. Any classes that are already superclasses of this class will be skipped. |
As | Checks whether the specified model is an instance compatible with this class. Returns true if the metaclass of the specified model matches this class or a subclass of this class. |
GetAllSubClasses | Gets all classes that derive from this class. Returns an empty collection if there are no derived classes. |
GetAllSuperClasses | Gets all superclasses of this class. Returns an empty collection if there are no superclasses. |
GetConstraintByName | Gets the constraint with the specified name defined in this class. If there are multiple constraints with the same name, returns the first constraint found. |
GetConstraints | Gets the constraints defined in this class. |
GetConstraintsByField | Gets the constraints for the specified field defined in this class. |
GetConstraintsByTarget | Gets the constraints for the elements that are subject to the specified constraint defined in this class. |
GetEmbeddedFieldsOf | Gets the owned fields of this class for the specified type. This method cannot retrieve primitive and enumeration type fields. Use GetFieldsByType() to get primitive and enum fields by data type. |
GetField | Gets the field of this class with the specified name. Returns null if the field with the specified name is undefined. |
GetFields | Gets the fields of this class. Fields are ordered by the field definition order of the metaclass. |
GetFieldsByTag | Gets the fields of this class with the specified tag. If the tag value is unspecified, it is evaluated only by the presence or absence of the tag. |
GetFieldsByType | Gets the fields of this class with the specified type name. Class type fields can be obtained by specifying the fully qualified name of the class. Enumeration fields can be obtained by specifying the fully qualified name of the enumeration. |
GetFieldsOf | Gets the fields of this class of the specified type. This method cannot get primitive and enum fields. If you want to get primitive and enum fields by data type, use GetFieldsByType(). |
GetReferenceFieldsOf | Gets the reference fields of this class of the specified type. |
GetSubClasses | Gets the direct descendants of this class. Returns an empty collection if there are no direct descendants. |
Is | Checks if the specified model is an instance of this class. Returns true if the metaclass of the specified model matches this class. |
IsClassOf | Checks if the specified class is compatible with this class. Returns true if the specified class matches or is a subclass of this class. |
IsSuperClass | Checks if this class is a superclass of the specified class. Returns true if the specified class is a superclass of this class. |