C# Class NClass.Core.Models.ClassModel

Inheritance: Model
ファイルを表示 Open project: gbaychev/NClass Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
GetEntity ( string type ) : IEntity
LoadRelationships ( XmlNode root ) : void

Private Methods

Method Description
AddRelationship ( Relationship relationship ) : void

Method Details

AddAssociation() public method

/// or is null. ///
public AddAssociation ( TypeBase first, TypeBase second ) : AssociationRelationship
first TypeBase
second TypeBase
return AssociationRelationship

AddClass() public method

public AddClass ( ) : ClassType
return ClassType

AddComment() public method

public AddComment ( ) : Comment
return Comment

AddCommentRelationship() public method

/// or is null. ///
public AddCommentRelationship ( Comment comment, IEntity entity ) : CommentRelationship
comment Comment
entity IEntity
return CommentRelationship

AddComposition() public method

/// or is null. ///
public AddComposition ( TypeBase first, TypeBase second ) : AssociationRelationship
first TypeBase
second TypeBase
return AssociationRelationship

AddDelegate() public method

/// The language does not support delegates. ///
public AddDelegate ( ) : DelegateType
return DelegateType

AddDependency() public method

/// or is null. ///
public AddDependency ( TypeBase first, TypeBase second ) : DependencyRelationship
first TypeBase
second TypeBase
return DependencyRelationship

AddEnum() public method

public AddEnum ( ) : EnumType
return EnumType

AddGeneralization() public method

/// Cannot create relationship between the two types. /// /// or is null. ///
public AddGeneralization ( CompositeType derivedType, CompositeType baseType ) : GeneralizationRelationship
derivedType CompositeType
baseType CompositeType
return GeneralizationRelationship

AddInterface() public method

public AddInterface ( ) : InterfaceType
return InterfaceType

AddNesting() public method

/// Cannot create relationship between the two types. /// /// or is null. ///
public AddNesting ( CompositeType parentType, TypeBase innerType ) : NestingRelationship
parentType CompositeType
innerType TypeBase
return NestingRelationship

AddRealization() public method

/// Cannot create relationship between the two types. /// /// or is null. ///
public AddRealization ( TypeBase implementer, InterfaceType baseType ) : RealizationRelationship
implementer TypeBase
baseType InterfaceType
return RealizationRelationship

AddStructure() public method

/// The language does not support structures. ///
public AddStructure ( ) : StructureType
return StructureType

ClassModel() public method

public ClassModel ( ) : System
return System

ClassModel() public method

/// is null. ///
public ClassModel ( System.Language language ) : System
language System.Language
return System

GetEntity() protected method

protected GetEntity ( string type ) : IEntity
type string
return IEntity

LoadRelationships() protected method

/// The save format is corrupt and could not be loaded. /// /// is null. ///
protected LoadRelationships ( XmlNode root ) : void
root System.Xml.XmlNode
return void

Serialize() public method

public Serialize ( XmlElement node ) : void
node System.Xml.XmlElement
return void