Class Parameter
Definition class for parameters.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Model.Elements
Assembly: Kephas.Model.dll
Syntax
public class Parameter : ModelElementBase<IParameter>, IConstructibleElement, IParameter, IModelElement, INamedElement, IAggregatedElementInfo, IParameterInfo, IValueElementInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProvider
Constructors
| Improve this Doc View SourceParameter(IModelConstructionContext, String)
Initializes a new instance of the Parameter class.
Declaration
public Parameter(IModelConstructionContext constructionContext, string name)
Parameters
Type | Name | Description |
---|---|---|
IModelConstructionContext | constructionContext | Context for the construction. |
System.String | name | The name. |
Properties
| Improve this Doc View SourceIsIn
Gets or sets a value indicating whether the parameter is for input.
Declaration
public bool IsIn { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this parameter is for input, false if not. |
IsOptional
Gets or sets a value indicating whether this parameter is optional.
Declaration
public bool IsOptional { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsOut
Gets or sets a value indicating whether the parameter is for output.
Declaration
public bool IsOut { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if this parameter is for output, false if not. |
Position
Gets or sets the position in the parameter's list.
Declaration
public int Position { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 | The position in the parameter's list. |
ValueType
Gets or sets the type of the element's value.
Declaration
public ITypeInfo ValueType { get; protected set; }
Property Value
Type | Description |
---|---|
ITypeInfo | The type of the element's value. |
Methods
| Improve this Doc View SourceComputeValueType()
Calculates the property type.
Declaration
protected virtual ITypeInfo ComputeValueType()
Returns
Type | Description |
---|---|
ITypeInfo | The calculated property type. |
Exceptions
Type | Condition |
---|---|
ModelException | Thrown when the property has no parts which can be used to get the classifier. |
GetValue(Object)
Gets the value from the specified object.
Declaration
public object GetValue(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
Returns
Type | Description |
---|---|
System.Object | The value. |
SetValue(Object, Object)
Sets the specified value.
Declaration
public void SetValue(object obj, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
System.Object | value | The value. |