Class TypeElement
Represents a type description with inherited information
about the properties, the constructor to create an instance of that type
as well as their expected parameters with the parameter type
Inheritance
System.Object
TypeElement
Implements
System.IEquatable<TypeElement>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Interfaces.Model
Assembly: Mars.Interfaces.dll
Syntax
public abstract class TypeElement : ModelElement, IEquatable<TypeElement>
Constructors
| Improve this Doc View SourceTypeElement(Type)
Represents a type description with inherited information
about the properties, the constructor to create an instance of that type
as well as their expected parameters with the parameter type
Declaration
protected TypeElement(Type metaType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | metaType |
Properties
| Improve this Doc View SourceActiveConstructor
The active constructor to create
a new instance of this type
Declaration
[JsonIgnore]
public abstract ConstructorType ActiveConstructor { get; }
Property Value
| Type | Description |
|---|---|
| ConstructorType |
Constructors
All available constructors of the type
Declaration
[JsonIgnore]
public IEnumerable<ConstructorType> Constructors { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<ConstructorType> |
DescribedProperties
Gets all properties of this type description which have an assigned
PropertyDescription annotation.
Declaration
[JsonIgnore]
public List<PropertyType> DescribedProperties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<PropertyType> |
InputProperties
Gets all input properties of this type description which can be written and are public.
PropertyDescription annotation.
Declaration
[JsonIgnore]
public List<PropertyType> InputProperties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<PropertyType> |
Interfaces
All implemented interfaces of the type
Declaration
[JsonIgnore]
public IEnumerable<Type> Interfaces { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.Type> |
MetaType
The static type structure of the agent or layer class
Declaration
[JsonIgnore]
public Type MetaType { get; }
Property Value
| Type | Description |
|---|---|
| System.Type |
OutputProperties
Gets all properties marked or inferred as the output.
Currently supported are only primitive, enum and string types
Declaration
[JsonIgnore]
public List<PropertyType> OutputProperties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<PropertyType> |
Properties
The public properties of the type with mapping of the property name
to the property description
Declaration
[JsonIgnore]
public IDictionary<string, PropertyType> Properties { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IDictionary<System.String, PropertyType> |
TypeInterfaces
An optional set of own defined and implemented interfaces for this type
Declaration
[JsonIgnore]
public Type[] TypeInterfaces { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Type[] |
TypeMapping
The mapping entry point for this type
with all parameter inputs
Declaration
[JsonIgnore]
public abstract TypeMapping TypeMapping { get; }
Property Value
| Type | Description |
|---|---|
| TypeMapping |
TypeName
The full qualified name of the type
including namespace and class name
Declaration
[JsonIgnore]
public string TypeName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
TypeSimpleName
The short name of the type member
Declaration
[JsonIgnore]
public string TypeSimpleName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceEquals(TypeElement)
Represents a type description with inherited information
about the properties, the constructor to create an instance of that type
as well as their expected parameters with the parameter type
Declaration
public bool Equals(TypeElement other)
Parameters
| Type | Name | Description |
|---|---|---|
| TypeElement | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
Represents a type description with inherited information
about the properties, the constructor to create an instance of that type
as well as their expected parameters with the parameter type
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Represents a type description with inherited information
about the properties, the constructor to create an instance of that type
as well as their expected parameters with the parameter type
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
Implements
System.IEquatable<T>