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 a profile. |
Inherit Base
Name | Description |
---|---|
IType | An object that represents a type. |
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 | Abstract class |
Owner | Package You can change the package by changing the value, but you cannot specify null. |
SuperClasses | Direct superclasses of this class If there are no direct superclasses, returns an empty collection. |
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 is done. |
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 if the specified model is a compatible instance of 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 a constraint with the specified name defined by this class. If there are multiple constraints with the same name, returns the first one found. |
GetConstraints | Gets the constraints defined by 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 constraints defined in this class. |
GetEmbeddedFieldsOf | Gets the owned fields of the specified type for this class. This method cannot retrieve primitive and enum fields. To retrieve primitive and enum fields by data type, use GetFieldsByType(). |
GetField | Gets the field of the specified name for this class. Returns null if the field of the specified name is undefined. |
GetFields | Gets the fields of this class. The order of the fields is the order of the fields defined in the metaclass. |
GetFieldsByTag | Gets the fields of this class with the specified tag. If the tag value is not specified, it will be 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. Enum type fields can be obtained by specifying the fully qualified name of the enumeration. |
GetFieldsOf | Gets the fields of this class with 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 | Get the reference fields of the specified type for this class. |
GetSubClasses | Get 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. |
RemoveSuperClass | Removes the specified class from the superclasses of this class. If the specified class is not included in the superclasses of this class, nothing will be done. Removing the inheritance relationship of a class will also remove the models of the inherited classes. |
RemoveSuperClasses | Removes the specified classes from the superclasses of this class. Among the specified classes, classes that are not included in the superclasses of this class will be skipped. Removing the inheritance relationship of a class will also remove the models of the inherited classes. |