C# Класс NClass.Core.Models.ClassModel

Наследование: Model
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddAssociation ( TypeBase first, TypeBase second ) : AssociationRelationship
AddClass ( ) : ClassType
AddComment ( ) : Comment
AddCommentRelationship ( Comment comment, IEntity entity ) : CommentRelationship
AddComposition ( TypeBase first, TypeBase second ) : AssociationRelationship
AddDelegate ( ) : DelegateType
AddDependency ( TypeBase first, TypeBase second ) : DependencyRelationship
AddEnum ( ) : EnumType
AddGeneralization ( CompositeType derivedType, CompositeType baseType ) : GeneralizationRelationship
AddInterface ( ) : InterfaceType
AddNesting ( CompositeType parentType, TypeBase innerType ) : NestingRelationship
AddRealization ( TypeBase implementer, InterfaceType baseType ) : RealizationRelationship
AddStructure ( ) : StructureType
ClassModel ( ) : System
ClassModel ( System.Language language ) : System
Serialize ( XmlElement node ) : void

Защищенные методы

Метод Описание
GetEntity ( string type ) : IEntity
LoadRelationships ( XmlNode root ) : void

Приватные методы

Метод Описание
AddRelationship ( Relationship relationship ) : void

Описание методов

AddAssociation() публичный Метод

/// or is null. ///
public AddAssociation ( TypeBase first, TypeBase second ) : AssociationRelationship
first TypeBase
second TypeBase
Результат AssociationRelationship

AddClass() публичный Метод

public AddClass ( ) : ClassType
Результат ClassType

AddComment() публичный Метод

public AddComment ( ) : Comment
Результат Comment

AddCommentRelationship() публичный Метод

/// or is null. ///
public AddCommentRelationship ( Comment comment, IEntity entity ) : CommentRelationship
comment Comment
entity IEntity
Результат CommentRelationship

AddComposition() публичный Метод

/// or is null. ///
public AddComposition ( TypeBase first, TypeBase second ) : AssociationRelationship
first TypeBase
second TypeBase
Результат AssociationRelationship

AddDelegate() публичный Метод

/// The language does not support delegates. ///
public AddDelegate ( ) : DelegateType
Результат DelegateType

AddDependency() публичный Метод

/// or is null. ///
public AddDependency ( TypeBase first, TypeBase second ) : DependencyRelationship
first TypeBase
second TypeBase
Результат DependencyRelationship

AddEnum() публичный Метод

public AddEnum ( ) : EnumType
Результат EnumType

AddGeneralization() публичный Метод

/// Cannot create relationship between the two types. /// /// or is null. ///
public AddGeneralization ( CompositeType derivedType, CompositeType baseType ) : GeneralizationRelationship
derivedType CompositeType
baseType CompositeType
Результат GeneralizationRelationship

AddInterface() публичный Метод

public AddInterface ( ) : InterfaceType
Результат InterfaceType

AddNesting() публичный Метод

/// Cannot create relationship between the two types. /// /// or is null. ///
public AddNesting ( CompositeType parentType, TypeBase innerType ) : NestingRelationship
parentType CompositeType
innerType TypeBase
Результат NestingRelationship

AddRealization() публичный Метод

/// Cannot create relationship between the two types. /// /// or is null. ///
public AddRealization ( TypeBase implementer, InterfaceType baseType ) : RealizationRelationship
implementer TypeBase
baseType InterfaceType
Результат RealizationRelationship

AddStructure() публичный Метод

/// The language does not support structures. ///
public AddStructure ( ) : StructureType
Результат StructureType

ClassModel() публичный Метод

public ClassModel ( ) : System
Результат System

ClassModel() публичный Метод

/// is null. ///
public ClassModel ( System.Language language ) : System
language System.Language
Результат System

GetEntity() защищенный Метод

protected GetEntity ( string type ) : IEntity
type string
Результат IEntity

LoadRelationships() защищенный Метод

/// The save format is corrupt and could not be loaded. /// /// is null. ///
protected LoadRelationships ( XmlNode root ) : void
root System.Xml.XmlNode
Результат void

Serialize() публичный Метод

public Serialize ( XmlElement node ) : void
node System.Xml.XmlElement
Результат void