Skip to main content

IMetamodels Interface

Namespace: NextDesign.Core

Description

Metamodel management object.

Belonging Area

NameDescription
ProfileA group of APIs to access the profile.

Property

NameDescription
AllClassesList of classes
AllEnumsList of enumerations
AllPackagesList of packages

Method

NameDescription
AddLiteralAdds a new enumeration literal with the specified literal string to the specified enumeration.
AddPathConstraint(string,IClass,IField,string)Adds a path constraint to the specified field of the specified class.
Note that the existence of a path that matches the path string set here is not checked. This method will end normally even if an incorrect path is specified.
AddPathConstraint(string,string,string,string)Adds a path constraint to the specified field of the specified class.
Note that the existence of a path that matches the path string set here is not checked. This method will end normally even if an incorrect path is specified.
AddPropertyAdds a new property to the specified class.
AddSuperClasses(IClass,IEnumerable<IClass>)Sets the superclasses of the specified class.
AddSuperClasses(IClass,string,bool)Sets the superclasses of a specified class.
FindClassesByName(IEnumerable<string>,bool)Finds classes with a specified class name.
FindClassesByName(string,bool)Finds classes with a specified class name.
FindClassesByTagFinds classes with a specified tag.
FindClassesWithFieldFinds classes with a specified field.
FindEnumsByTagFinds enums with the specified tag.
FindPackagesByTagFinds packages with the specified tag.
GetClassGets a class with the specified name.
If multiple classes with the same name are defined, returns the first one found in definition order.
GetEnumGets an enum with the specified name.
If multiple enums with the same name are defined, returns the first one found in definition order.
GetSubClassesGets the subclasses of the specified class.
MoveToPackage(IEnumerable<IClass>,IPackage)Moves the specified class to the specified package.
MoveToPackage(string,IPackage,bool)Moves the specified class to the specified package.
NewClassGenerates a new class.
NewEnum(string,IEnumerable<string>,IPackage)Generates a new enumeration type.
NewEnum(string,string,IPackage)Creates a new enumeration.
NewPackageCreates a new package.
RelateCreates an association between specified classes.
RemoveClassRemoves the specified class.
RemoveConstraintRemoves the specified constraint.
RemoveConstraintsRemove all specified constraints.
RemoveEnumRemove the specified enumeration.
RemoveLiteralRemove the enumeration literal.
RemovePathConstraint(IClass,IField)Remove the path constraint for the specified field of the specified class.
RemovePathConstraint(string,string)Removes the path constraint for the specified field of the specified class.
RemovePropertyRemoves a property of the specified class.
UnRelateRemoves the association between the specified classes.