C# Class Composite.Data.DynamicTypes.DataTypeDescriptor

Show file Open project: Orckestra/C1-CMS Class Usage Examples

Private Properties

Property Type Description
AddSuperInterface void
FromXml DataTypeDescriptor
SetSuperInterfaces void

Public Methods

Method Description
AddSuperInterface ( Type interfaceType ) : void

Adds an interface the data type should inherit from

Clone ( ) : DataTypeDescriptor

Clones the data type description.

DataTypeDescriptor ( ) : System

Instantiates an instance of DataTypeDescriptor with default settings.

DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, bool isCodeGenerated ) : System

Instantiates an instance of DataTypeDescriptor.

DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, string typeManagerTypeName ) : System

Instantiates an instance of DataTypeDescriptor with a custom Type Manager.

DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, string typeManagerTypeName, bool isCodeGenerated ) : System

Instantiates an instance of DataTypeDescriptor with a custom Type Manager.

Equals ( DataTypeDescriptor dataTypeDescriptor ) : bool
Equals ( object obj ) : bool
FromXml ( System.Xml.Linq.XElement element ) : DataTypeDescriptor

Deserializes a data type descriptor

GetHashCode ( ) : int
GetInterfaceType ( ) : Type

Returns the CLT Type for this data type description.

RemoveSuperInterface ( Type interfaceType ) : void

Removes a super interface

ToString ( ) : string
ToXml ( ) : System.Xml.Linq.XElement

Serialize the data type description to XML

Validate ( ) : void

Validate the data type description or throw an exception.

Private Methods

Method Description
AddSuperInterface ( Type interfaceType, bool addInheritedFields ) : void

Adds an interface the data type should inherit from

FromXml ( System.Xml.Linq.XElement element, bool inheritedFieldsIncluded ) : DataTypeDescriptor
SetSuperInterfaces ( List superInterfaces ) : void

Resets the list of interfaces this data type inherit from

Method Details

AddSuperInterface() public method

Adds an interface the data type should inherit from
public AddSuperInterface ( Type interfaceType ) : void
interfaceType System.Type
return void

Clone() public method

Clones the data type description.
public Clone ( ) : DataTypeDescriptor
return DataTypeDescriptor

DataTypeDescriptor() public method

Instantiates an instance of DataTypeDescriptor with default settings.
public DataTypeDescriptor ( ) : System
return System

DataTypeDescriptor() public method

Instantiates an instance of DataTypeDescriptor.
public DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, bool isCodeGenerated ) : System
dataTypeId System.Guid The permanent Guid which should represent this data type.
dataTypeNamespace string Namespace of the type.
dataTypeName string Name of the type.
isCodeGenerated bool True if this type is dynamically compiled.
return System

DataTypeDescriptor() public method

Instantiates an instance of DataTypeDescriptor with a custom Type Manager.
public DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, string typeManagerTypeName ) : System
dataTypeId System.Guid The permanent Guid which should represent this data type.
dataTypeNamespace string Namespace of the type.
dataTypeName string Name of the type.
typeManagerTypeName string If this data type has a custom type manager
return System

DataTypeDescriptor() public method

Instantiates an instance of DataTypeDescriptor with a custom Type Manager.
public DataTypeDescriptor ( System.Guid dataTypeId, string dataTypeNamespace, string dataTypeName, string typeManagerTypeName, bool isCodeGenerated ) : System
dataTypeId System.Guid The permanent Guid which should represent this data type.
dataTypeNamespace string Namespace of the type.
dataTypeName string Name of the type.
typeManagerTypeName string If this data type has a custom type manager
isCodeGenerated bool True if this type is dynamically compiled.
return System

Equals() public method

public Equals ( DataTypeDescriptor dataTypeDescriptor ) : bool
dataTypeDescriptor DataTypeDescriptor
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FromXml() public static method

Deserializes a data type descriptor
public static FromXml ( System.Xml.Linq.XElement element ) : DataTypeDescriptor
element System.Xml.Linq.XElement A serialized (XML) data type descriptor
return DataTypeDescriptor

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetInterfaceType() public method

Returns the CLT Type for this data type description.
public GetInterfaceType ( ) : Type
return System.Type

RemoveSuperInterface() public method

Removes a super interface
public RemoveSuperInterface ( Type interfaceType ) : void
interfaceType System.Type Type to remove
return void

ToString() public method

public ToString ( ) : string
return string

ToXml() public method

Serialize the data type description to XML
public ToXml ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement

Validate() public method

Validate the data type description or throw an exception.
public Validate ( ) : void
return void