IModel interface
Namespace: NextDesign.Core
Description
Provides access to NextDesign design model information.
Area you belong to
Name | Description |
---|---|
Model | A group of APIs to access models. |
Inherit Base
Name | Description |
---|---|
IObject | Represents an identifiable object. |
Derived from
Name | Description |
---|---|
IFrame | This is an access object to frame information. |
IInteractionElement | This is an access object to interaction model element information. Define common characteristics for elements that represent interactions. |
IFeature | This is an access object for product feature information. |
IProductLineModel | This is an access object for the product line development support model. |
IConfigurationModel | Access object for the product configuration model. |
IProject | Provides access to project information. |
IInteraction | This is an access object to interaction model information. |
IFeatureModel | This is an access object for the management model that structures product features. |
IRelationship | An access object to related information. |
IProduct | This is an access object for product information. |
Property
Name | Description |
---|---|
ClassName | Class name Get the name of the Metaclass. |
Description | Description |
Errors | Gets a collection of error information for this model. Error information includes summary information. |
HasError | Check if there are any errors in this model. Returns True if this model has errors. This evaluation includes summary information. |
HasErrorWithChildren | Checks for errors in this model and the elements below the child elements owned by this model. Returns True if there is an error in this model and the elements below the child elements owned by this model. This evaluation includes summary information. |
IsDeleted | Check if this instance has been deleted. |
IsDeleting | Check if this model is being deleted. |
IsDirty | Checks if this model is dirty (unsaved). Returns True if not saved. |
IsEditable | Checks if this instance is editable. |
IsProxy | Checks if this instance is a proxy element. Proxy elements are generated in distributed environments when the unit that recorded this instance information is not loaded. |
IsUnitTopModel | Checks if this instance is the base model for the unit. |
Metaclass | Class |
ModelPath | Model hierarchy path for this instance Returns a path string joined by path separators ("/"). If the root node to which this instance belongs is a model whose parent element has not been loaded, "\partial;" will be added to the beginning of the path string combined with a path delimiter. |
ModelUnit | Unit (physical file) information that manages this instance information |
Name | Name |
Owner | The model that directly owns this instance Returns null if this instance is a relationship or if the owning model does not exist. |
OwnerProject | The project that holds this instance |
Method
Name | Description |
---|---|
AddError | Adds error information for this model and returns the added error information. |
AddNewModel | Adds an instance of the specified class as a field value to the specified field of this instance. The instance is added as the last element of the field. Even if the specified class is an abstract class, it can be instantiated and added as the last element of the corresponding field. The specified field must be an owned field of the class type. An exception will not be thrown if the multiplicity upper limit constraint of a field with multiplicity greater than or equal to 2 is violated. Also, the class name you specify must be compatible with the field's data type. In addition, when performing a fuzzy match, if there are multiple matching classes, the instance of the first type-compatible class found will be added. |
AddNewModelAt | Adds an instance of the specified class as a field value to the specified field of this instance, with the specified addition position. Allows instantiation even if the specified class is an abstract class, and adds it as a field value at the specified position. The specified field must be an owned field of the class type. Note that no exception will be thrown even if the multiplicity upper limit constraint of a field with multiplicity of 2 or more is violated. The class name you specify must be compatible with the field's data type. Also, when performing a fuzzy match, if there are multiple matching classes, an instance of the first type-compatible class found is added. |
AddNewModelTo | Adds an instance of the specified class as a field value to the specified field of this instance, with the specified addition position. Allows instantiation even if the specified class is an abstract class, and adds it as a field value at the specified position. The specified field must be an owned field of the class type. Note that no exception will be thrown even if the multiplicity upper limit constraint of a field with multiplicity of 2 or more is violated. The class name you specify must be compatible with the field's data type. Also, when performing a fuzzy match, if there are multiple matching classes, an instance of the first type-compatible class found is added. |
As | Checks if this instance is compatible with the specified class type. Returns True if this instance is an instance of the specified class or its subclasses. |
AsIn(IEnumerable<string>,bool) | Checks if this instance is compatible with the class type specified by multiple string types. Returns True if this instance is an instance of any of the specified classes, or their subclasses. |
AsIn(string,bool) | Checks whether this instance is compatible with the class type specified by the comma-separated string type. Returns True if this instance is an instance of any of the specified classes, or their subclasses. |
AssignFeature | Assigns the specified feature to this model. |
AssignFeatureByName | Assigns a feature with the specified name to this model. |
AssignFeatures | Assigns all specified features to this model. |
AssignFeaturesByName | Assigns all features with the specified name to this model. |
CanRelate | Checks whether the specified field of this instance can be associated with the given model. Returns True if it can be associated. In addition to evaluating the field type, this method also evaluates the following field constraints: [Constraints to be evaluated] - Path constraints - Type constraints - Multiplicity upper limit Please note that the model itself or the associated model has been deleted. model, returns False if it is a temporary proxy. False is also returned if the following fields are specified. - Product line feature assignment field - Field tagged System.Core - Owned field |
CanRelateAny | Checks if this instance can be associated with the given model. Returns True if this instance can be associated with any reference field. False is returned if the model itself or the associated model is a deleted model or a temporary proxy. Please note that this does not apply to owned fields. |
Count | Gets the number of values in the specified field. This method does not evaluate IContextOption.PlModelAccessMode. |
CreateAsyncValidationContext | Create an asynchronous validation context for this model. |
Delete | Deletes this instance. If this method is called on an instance that has already been deleted, nothing will happen. Deleting this instance will result in the following changes to the model: ・The ownership relationship between this instance and the owner (parent element) will be deleted. ・All reference relationships with this instance as the relationship end will be deleted. ・Elements below all child elements owned by this instance and reference relationships with those elements as relationship ends will be deleted. |
FindChildrenByClass | Finds instances of the specified class among the instances owned by this instance. This method evaluates IContextOption.PlModelAccessMode. Returns a collection of owned instances of the specified class. If the class specified in class name is not found, an empty collection will be returned. It also returns an empty collection if no such instance exists. |
FindChildrenByClassDisplayName | Finds an instance of the class with the specified display name among the instances owned by this instance. This method evaluates IContextOption.PlModelAccessMode. Returns a collection of owned instances of the class with the specified display name. Returns an empty collection if no such instance exists. |
FindChildrenByClassTag | Retrieves the instance of the class that has the specified tag among the instances owned by this instance. This method evaluates IContextOption.PlModelAccessMode. Returns a collection of owned instances of the class that have the specified tag. Returns an empty collection if no such instance exists. |
FindChildrenByTag | Retrieves the instance with the specified tag among the instances owned by this instance. This method evaluates IContextOption.PlModelAccessMode. Returns a collection of owned instances with the specified tag. Returns an empty collection if no such instance exists. |
FindOwnerByClass | Gets the first owning instance of the specified class that holds this instance. Tracks the instance that owns this instance toward its parent, and returns the first instance of the specified class found. Returns null if no matching instance is found even after searching up to the topmost parent element. If the class specified in class name is not found, null is returned. Also, when performing a fuzzy match, if there are multiple matching classes, the instance of the first class found will be returned. |
GetAllChildren | Gets all owned instances that can be searched by ownership depth-first search from this instance. This method evaluates IContextOption.PlModelAccessMode. Returns a collection of all owned instances that can be searched using ownership depth-first search starting from this instance. Returns an empty collection if no such instance exists. |
GetAllErrorsWithChildren | Gets all error information including elements below child elements owned by this model. Returns an empty collection if no error information exists. Error information includes summary information. |
GetAssignedFeatures | Get all features assigned to this model. |
GetChildren | Retrieves the owning instance that is directly owned by this instance. This method evaluates IContextOption.PlModelAccessMode. Returns a collection of owned instances that have a direct ownership relationship with this instance. Returns an empty collection if no such instance exists. |
GetDerivedFromRelationsOf | If this model is an element derived from the specified model, get all derived relationships. For example, if this model is an element derived from{element A}, you can obtain the derived relationship by specifying{element A} as an argument. This can be used for the following processing. ・If there is a derived relationship between the request object and the specification object, obtain the relationship for the request object from the specification object side. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetDerivedModels | Gets instances derived from this instance by the specified associated class. If the related class is not specified (null), all derived instances will be obtained. This method evaluates IContextOption.PlModelAccessMode. This method returns an empty collection if the following cases are true: - The derived instance associated with the corresponding derived association does not exist. - The specified association class was not found. - The specified association class is not a derived association. - Reference field to derivation destination by specified derivation-related class not found |
GetDerivedToRelationsOf | If the specified model is an element derived from this model, get all derived relations. For example, if there is{element B} derived from this model, you can obtain its derived relationship by specifying{element B} as an argument. This can be used for the following processing. ・If there is a derived relationship between the request object and the specification object, obtain the relationship to the specification object from the request object side. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetDeriveRelationsOf | Gets all derived relationships with the specified model. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. Please note that this method does not evaluate the derivation direction. |
GetDerivingModels | Gets the instances from which this instance is derived by the specified associated class. If the related class is not specified (null), all derived instances will be obtained. This method evaluates IContextOption.PlModelAccessMode. This method returns an empty collection if the following cases are true: - The derived instance associated with the corresponding derivation association does not exist. - The specified association class cannot be found. - The specified association class is not a derived association. - Reference field to derived source by specified derived related class not found |
GetEditor | Gets the editor with the specified name for this instance. This method evaluates IContextOption.EditorAccessMode. Returns null if no matching editor is found. Depending on EditorAccessMode, the latest model changes are not synchronized. For this reason, please note that correct information may not be obtained if you use an editor that has not been displayed since the model was changed. |
GetEditors | Get all editors corresponding to this instance. This method evaluates IContextOption.EditorAccessMode. Returns an empty collection if no corresponding editor exists. Depending on EditorAccessMode, the latest model changes are not synchronized. For this reason, please note that correct information may not be obtained if you use an editor that has not been displayed since the model was changed. |
GetField | Gets the value of the specified field in this instance. If the multiplicity of the specified field is 2 or more, get the first element of the corresponding field. |
GetFieldAt | Retrieves the value at the specified index of the specified field in this instance. |
GetFieldString | Gets the value of the specified field of this instance in string format. If the specified field is of class type, get the first instance name of the field. If the multiplicity is 2 or more, the first element of the corresponding field will be retrieved. |
GetFieldStringAt | Retrieves the value at the specified index of the specified field in this instance in string format. If the field at the specified index position is a class type, get the first instance name of that field. |
GetFieldValues | Gets the values collection for the specified field. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such field value exists. The data type of the field specified in this method must be a class type. |
GetFieldValuesByFieldTag | Gets an enumeration of values for the field with the specified tag. If there are multiple fields with the corresponding tag, the combined enumeration of the values of all the fields is returned. This method does not evaluate IContextOption.PlModelAccessMode. Note that elements that are invalid in the product are also returned. Returns an empty collection if no such field value exists. The data type of the field that is tagged by this method is arbitrary. Therefore, the enumeration returned by this method is of type object. When using it, it is necessary to convert it to the most suitable data type. |
GetOwnerField | Gets the field held by this model's owning model. Returns null if this model is related or if the owning model does not exist. |
GetOwnerRelationship | Gets the relationship of this model with the owning model. Returns null if this model is related or if the owning model does not exist. |
GetOwners | Retrieves all the owner instances that can be searched by ownership relationship for this instance. Returns a collection of instances towards the parent of the instance that owns this instance. Returns an empty collection if the parent element does not exist. |
GetProductApplyCondition | Get the product application condition expression for this model. The product application condition expression is a logical expression that treats the "feature name variable" as a boolean value type variable. In the configuration, if a feature is in the selected state, the corresponding "feature name variable" is evaluated as true. A "feature name variable" is written using a format in which the feature name or feature unique name is enclosed in "[" and "]". In addition, you can use the following logical operators and "(",")" to specify the calculation order in the product application condition expression. - AND: Logical product - OR: Logical sum - NOT: Negative Example: ・The following product application conditional expression is This is a conditional expression that evaluates as true if the feature name is "Following Driving" or "Front Camera" in the lation. [Following Driving] OR [Front Camera] This is a conditional expression that evaluates as true if "millimeter wave radar" is selected. NOT [Constant speed driving] AND [Millimeter wave radar] |
GetReferenceFieldsOf | Retrieves the reference fields of the class of this instance that are of a type that can store the specified model. The fields that can be retrieved with this method have the same result as Model.Metaclass.GetReferenceFieldOf(model.Metaclass). Also, field constraints such as multiplicity and path constraints are not evaluated. |
GetRefRelatedModels | Gets the instances that have a reference relationship with this instance by the specified related class. If the related class is not specified (null), all referenced instances will be obtained. This method evaluates IContextOption.PlModelAccessMode. This method returns an empty collection if the following cases are true: - There are no instances associated with the relevant reference association. - The specified association class is not found. - The reference field by the specified association class is not found. If the specified related class is a self-reference related, both the source and destination relationships will be evaluated. |
GetRelatableFieldsOf | Gets the reference fields that can associate this instance with the specified model. The fields retrieved by this method are evaluated for field constraints. Therefore, fields that do not meet the following constraints are excluded: [Constraints to evaluate] - Path constraints - Multiplicity upper limit |
GetRelatingFieldsOf | Retrieves all fields of this instance's class that store the specified model as the field value. Fields that can be retrieved with this method are retrieved regardless of ownership/reference. |
GetRelation | Gets the relationship for the specified field. This method evaluates IContextOption.PlModelAccessMode. Returns null if the specified field does not have a valid association. In addition, if the multiplicity of the specified field is 2 or more, the relationship to the first element of the corresponding field will be obtained. |
GetRelationAt | Gets the relationship of the specified field at the specified position. This method evaluates IContextOption.PlModelAccessMode. |
GetRelations | Gets the collection of relationships for the specified field. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetRelationsByClassTag | Gets an instance of the related class with the specified tag from all fields of this instance. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetRelationsByClassTagOf | Retrieves the relationships with the given model associated by the association class with the specified tag from all fields of this model. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetRelationsByFieldOf | Gets the relationships for the specified field with the specified model. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetRelationsByFieldTag | Gets the relationships of the field with the specified tag. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetRelationsByFieldTagOf | Gets relationships with the given model from fields with the specified tag. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetRelationsByTag | Gets the relationships with the specified tag in the specified field. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. |
GetRelationsOf | Get all relationships with the specified model. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. This method retrieves all relationships, regardless of ownership/reference relationships. |
GetRelationsOfWhere | Gets the relationships with the given model that match the specified criteria for this instance. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. The relationship of the acquisition target can be determined arbitrarily using the evaluation function. |
GetRelationsWhere | Gets all relationships that match the specified criteria for this instance. This method evaluates IContextOption.PlModelAccessMode. Returns an empty collection if no such association exists. The relationship of the acquisition target can be determined arbitrarily using the evaluation function. |
GetRepresentationsInEditor | Gets all representation information for this instance within the specified editor. This method evaluates IContextOption.EditorAccessMode. Returns an empty collection if there are no matching elements. Depending on EditorAccessMode, the latest model changes are not synchronized. For this reason, please note that correct information may not be obtained if you use an editor that has not been displayed since the model was changed. |
GetRichTextField | Gets the format value of the specified rich text field. Returns null if there is no value in the specified format. |
GetRichTextFieldCustomData | Gets the custom format value for the specified rich text field. Returns null if the specified format is not found. |
GetRichTextFieldFormats | Retrieves a list of formats in which the value of the specified rich text field is set. The order of the list is indeterminate. It also returns a format where the value is an empty string. |
Is | Checks if this instance is an instance of the specified class. Returns True if it is an instance of the specified class |
IsAppliedItem | Checks if this model is valid for the current product. |
IsAppliedItemTo | Checks if this model is valid for the specified product. |
IsAppliedItemToByName | Checks if this model is valid for the product with the specified name. |
IsIn(IEnumerable<string>,bool) | Checks whether this instance is an instance of one of the specified classes. Returns True if it is an instance of any of the specified classes. |
IsIn(string,bool) | Checks whether this instance is an instance of one of the specified classes. Returns True if it is an instance of any of the specified classes. |
IsRelatedAtFieldTo | Checks if this instance has a reference relationship with the given model by the specified field. Returns True if there is a relationship. |
IsRelatedTo | Checks if this instance has a reference relationship with the given model. Returns True if there is a relationship. |
MoveTo | Moves this instance so that it becomes a child of the specified model. If the destination parent element and field are the same as the current parent element and field, changes the order of the elements in the specified field. Note that no exception will be thrown even if the multiplicity upper bound constraint of the destination field is violated. |
NotifyFieldChanged | Notify about value changes in the specified field. |
Relate | Relates the given model at the end of the specified field of this instance and returns the added related instance. |
RelateAll | Relates the given model with all reference fields that can be associated with this instance's given model and returns a collection of all added related instances. If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed. If no association was made, returns an empty collection. This method excludes fields that do not meet the following constraints from being associated. [Constraints to be evaluated] - Path constraints - Type constraints - Multiplicity upper limit - Operation possible |
RelateAllDerivedFrom | A collection of all related instances added by associating the given model as a derivation source with all fields that can be associated with the given model as a derivation source of this instance returns. If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed. If no association was made, returns an empty collection. This method excludes fields that do not meet the following constraints from being associated. [Constraints to be evaluated] - Path constraints - Type constraints - Multiplicity upper limit - Operation possible |
RelateAllDerivedTo | A collection of all related instances added by associating the given model as a derivation destination with all fields that can be associated with the given model as a derivation destination of this instance returns. If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed. If no association was made, returns an empty collection. This method excludes fields that do not meet the following constraints from being associated. [Constraints to be evaluated] - Path constraints - Type constraints - Multiplicity upper limit - Operation possible |
RelateAt | Relates the given model with the specified addition position in the specified field of this instance, and returns the added related instance. |
RelateByClassTag | Returns a collection of all added related instances by relating the given model with a reference field that is relatable by the related class tagged with the specified tag for this instance. Masu. If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed. If no association was made, returns an empty collection. This method excludes fields that do not meet the following constraints from being associated. [Constraints to be evaluated] - Path constraints - Type constraints - Multiplicity upper limit - Operation possible |
RelateByFieldTag | Relates the given model with the specified tagged reference field of this instance and returns a collection of all added related instances. If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed. If no association was made, returns an empty collection. This method excludes fields that do not meet the following constraints from being associated. [Constraints to be evaluated] - Path constraints - Type constraints - Multiplicity upper limit - Operation possible |
RelateWhere | Relates the given model with all reference fields that match the specified criteria for this instance and returns a collection of all added related instances. If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed. If no association was made, returns an empty collection. The reference field to be associated can be determined arbitrarily using the evaluation function. However, even if the evaluation function is matched, if the field meets the following conditions, no association will be made and the process will end normally. ・When the field path constraint is violated ・When the field type is not compatible with the given model ・When the multiplicity of the field is exceeded ・The condition is met If the field to be used is one of the following non-operable fields - Product line feature assignment field - Field tagged with System.Core |
ReleaseAllAssignedFeatures | Unassign all features assigned to this model. If you cancel the assignment with the feature with this call, the product application condition expression will also be deleted. |
ReleaseAssignedFeature | Unassigns the specified feature to this model. |
ReleaseAssignedFeatureByName | Unassigns the feature with the specified name to this model. |
ReleaseAssignedFeatures | Unassign all specified features to this model. |
ReleaseAssignedFeaturesByName | Unassign all features with the specified name to this model. |
RemoveError | Removes error information added for this model. If null or error information not included in this model is specified for the error information to be deleted, nothing will be done and the process will end normally. |
RemoveField | Removes the value of the specified field in this instance. Deletes the specified model if the specified field is an owned field. If the specified field is a reference field, only the reference association is removed and the model is maintained. If the model specified for deletion is not included in the specified field, nothing will be done and the process will end normally. |
RemoveFieldAt | Removes the field value at the specified position in this instance. If the specified field is an owned field, deletes the model at the specified position. If the specified field is a reference field, only the reference association at the specified position is removed and the model is maintained. |
SetField | Sets the specified field in this instance to the specified value. If a value that cannot be set for the specified field is specified, an exception will be thrown. If the multiplicity of the specified field is 2 or more, the first element of the corresponding field will be set. |
SetFieldAt | Sets the specified value in the specified field of this instance at the specified index. If a value that cannot be set for the specified field is specified, an exception will be thrown. In addition, no exception will be thrown even if the field multiplicity upper limit constraint or path constraint is violated. |
SetInitField | Sets the specified field of this instance to the initial value of the field defined in the metamodel. Set the default value for the field type if the metamodel does not specify an initial value for the field. If you call this method on an owned field of a class type, the IModel that was set as the field value will be deleted. Also, if this method is called for a reference field of class type, the association with the IModel that was set as the field value will be deleted (the IModel of the field value will be maintained without being deleted) . |
SetProductApplyCondition | Set the product application condition expression for this model. In addition, if a feature name that is not assigned to this model is specified in the product application condition expression, the feature will be automatically assigned. Also, if a conditional expression does not use a feature name that has already been assigned to this model, it will be automatically unassigned from the feature. If you specify an empty string in the conditional expression, all feature assignments will be canceled. |
SetRichTextField(string,string,string,string) | Sets the value to the specified rich text field format. Also sets the text value in the specified rich text field. |
SetRichTextField(string,string,string) | Sets the value to the specified rich text field format. |
SetRichTextField(string,string) | Sets the text value in the specified rich text field. |
SetRichTextFieldCustomData | Sets the value in the specified rich text field's custom format. Custom formatted values are not displayed on the UI. It can only be retrieved and set using the API. |
Take | Moves the specified model to the specified field of this instance. This instance will be the parent element of the model to be moved. Note that no exception will be thrown even if the multiplicity upper bound constraint of the destination field is violated. |
UnRelate | Removes the reference association of this instance with the given model in the specified field. If there are multiple associations for the relevant field, all the associations will be canceled. If there is no relationship with the given model, nothing is done and the process ends normally. |
UnRelateAll | Removes all reference associations of this instance with the given model. If there is no relationship with the given model, nothing is done and the process ends normally. Also, the association with fields that meet the following conditions will not be canceled and the process will end normally. ・Association in fields for product line support ・Association in fields that have the System.Core tag |
UnRelateAllDerivedFrom | Removes all associations from this instance with the given model. If there is no relationship with the given model, nothing is done and the process ends normally. Also, the association with fields that meet the following conditions will not be canceled and the process will end normally. ・Association in fields for product line support ・Association in fields that have the System.Core tag |
UnRelateAllDerivedTo | Removes all associations that this instance derives from the given model. If there is no relationship with the given model, nothing is done and the process ends normally. Also, the association with fields that meet the following conditions will not be canceled and the process will end normally. ・Association in fields for product line support ・Association in fields that are tagged with System.Core |
UnRelateByClassTag | Removes the association of this instance with the model given by the reference field that is relatable by the associated class tagged with the specified tag. If there is no relationship with the given model, nothing is done and the process ends normally. Also, the association with fields that meet the following conditions will not be canceled and the process will end normally. ・Association in fields for product line support ・Association in fields that are tagged with System.Core |
UnRelateByFieldTag | Disassociates this instance's reference field with the specified tag from the given model. If there is no relationship with the given model, nothing is done and the process ends normally. Also, the association with fields that meet the following conditions will not be canceled and the process will end normally. ・Association in fields for product line support ・Association in fields that are tagged with System.Core |
UnRelateWhere | Removes all reference associations of this instance with the given model that meet the specified conditions. The target to be disassociated can be arbitrarily determined using the evaluation function. However, the association that meets the following conditions will not be canceled and will end normally. ・If the relationship matching the conditions is for product line support ・If the field at the end of the relationship matching the conditions has the System.Core tag added |
Validate() | Validate this model. Recursively validates this model and all elements below the child elements owned by this model. This method clears all previous error information when run. [When this method is executed for a project (IProject)] ・If there is an unloaded model file in the project, error information to that effect will be used as the base point of the design model. Add it to the model (the model you want to display at the root of the model navigator). This is to notify the caller that all models in the project cannot be verified because there are unloaded model files. ・Includes models that cannot be reached due to project ownership due to unloaded model files in the project (models whose parent is unloaded). [Verification content] ・Standard validation defined by the application ・Verification extended by extension validation event |
Validate(ValidationOptions) | Validate this model. By specifying options, only this model is verified, or this model and all elements below the child elements owned by this model are recursively verified. This method clears all previous error information when run. [When this method is executed for a project (IProject)] ・If there is an unloaded model file in the project, error information to that effect will be used as the base point of the design model. Add it to the model (the model you want to display at the root of the model navigator). This is to notify the caller that all models in the project cannot be verified because there are unloaded model files. ・Includes models that cannot be reached due to project ownership due to unloaded model files in the project (models whose parent is unloaded). [Verification content] ・Standard validation defaulted by the application enabled in the option ・If issuing an event during model validation is specified in the option, Extended validation with extension validation events |
Extension methods
Name | Description |
---|---|
IsDesignModel | Checks if this model is the design model root (the root model in the model navigator). |
IsProductLineElement | Checks if this model is a product line element. |
IsReadonly | Checks if this model is read-only. Returns False if the model unit corresponding to this model cannot be obtained. |
Related item
Name | Description |
---|---|
Edit the model | Edit various types of NextDesign model information through the API. |