C# Class NClass.Core.Models.ClassModel

Inheritance: Model
Afficher le fichier Open project: gbaychev/NClass Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
GetEntity ( string type ) : IEntity
LoadRelationships ( XmlNode root ) : void

Private Methods

Méthode Description
AddRelationship ( Relationship relationship ) : void

Method Details

AddAssociation() public méthode

/// or is null. ///
public AddAssociation ( TypeBase first, TypeBase second ) : AssociationRelationship
first TypeBase
second TypeBase
Résultat AssociationRelationship

AddClass() public méthode

public AddClass ( ) : ClassType
Résultat ClassType

AddComment() public méthode

public AddComment ( ) : Comment
Résultat Comment

AddCommentRelationship() public méthode

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

AddComposition() public méthode

/// or is null. ///
public AddComposition ( TypeBase first, TypeBase second ) : AssociationRelationship
first TypeBase
second TypeBase
Résultat AssociationRelationship

AddDelegate() public méthode

/// The language does not support delegates. ///
public AddDelegate ( ) : DelegateType
Résultat DelegateType

AddDependency() public méthode

/// or is null. ///
public AddDependency ( TypeBase first, TypeBase second ) : DependencyRelationship
first TypeBase
second TypeBase
Résultat DependencyRelationship

AddEnum() public méthode

public AddEnum ( ) : EnumType
Résultat EnumType

AddGeneralization() public méthode

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

AddInterface() public méthode

public AddInterface ( ) : InterfaceType
Résultat InterfaceType

AddNesting() public méthode

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

AddRealization() public méthode

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

AddStructure() public méthode

/// The language does not support structures. ///
public AddStructure ( ) : StructureType
Résultat StructureType

ClassModel() public méthode

public ClassModel ( ) : System
Résultat System

ClassModel() public méthode

/// is null. ///
public ClassModel ( System.Language language ) : System
language System.Language
Résultat System

GetEntity() protected méthode

protected GetEntity ( string type ) : IEntity
type string
Résultat IEntity

LoadRelationships() protected méthode

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

Serialize() public méthode

public Serialize ( XmlElement node ) : void
node System.Xml.XmlElement
Résultat void