Class Extension
Single extension of an element.
Inheritance
System.Object
Extension
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AasCore.Aas3_0.dll
Syntax
public class Extension : IExtension, IHasSemantics, IClass
Constructors
|
Improve this Doc
View Source
Extension(String, IReference, List<IReference>, Nullable<DataTypeDefXsd>, String, List<IReference>)
Declaration
public Extension(string name, IReference semanticId = null, List<IReference> supplementalSemanticIds = null, DataTypeDefXsd? valueType = null, string value = null, List<IReference> refersTo = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
IReference |
semanticId |
|
System.Collections.Generic.List<IReference> |
supplementalSemanticIds |
|
System.Nullable<DataTypeDefXsd> |
valueType |
|
System.String |
value |
|
System.Collections.Generic.List<IReference> |
refersTo |
|
Properties
|
Improve this Doc
View Source
Name
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RefersTo
Reference to an element the extension refers to.
Declaration
public List<IReference> RefersTo { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<IReference> |
|
|
Improve this Doc
View Source
SemanticId
Identifier of the semantic definition of the element. It is called semantic ID
of the element or also main semantic ID of the element.
Declaration
public IReference SemanticId { get; set; }
Property Value
|
Improve this Doc
View Source
SupplementalSemanticIds
Identifier of a supplemental semantic definition of the element.
It is called supplemental semantic ID of the element.
Declaration
public List<IReference> SupplementalSemanticIds { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<IReference> |
|
|
Improve this Doc
View Source
Value
Declaration
public string Value { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ValueType
Type of the value of the extension.
Declaration
public DataTypeDefXsd? ValueType { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Accept(Visitation.IVisitor)
Accept the visitor
to visit this instance
for double dispatch.
Declaration
public void Accept(Visitation.IVisitor visitor)
Parameters
|
Improve this Doc
View Source
Accept<TContext>(Visitation.IVisitorWithContext<TContext>, TContext)
Accept the visitor to visit this instance for double dispatch
with the context
.
Declaration
public void Accept<TContext>(Visitation.IVisitorWithContext<TContext> visitor, TContext context)
Parameters
Type Parameters
Name |
Description |
TContext |
|
|
Improve this Doc
View Source
Descend()
Iterate recursively over all the class instances referenced from this instance.
Declaration
public IEnumerable<IClass> Descend()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IClass> |
|
|
Improve this Doc
View Source
DescendOnce()
Iterate over all the class instances referenced from this instance
without further recursion.
Declaration
public IEnumerable<IClass> DescendOnce()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IClass> |
|
|
Improve this Doc
View Source
OverRefersToOrEmpty()
Iterate over RefersTo, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<IReference> OverRefersToOrEmpty()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IReference> |
|
|
Improve this Doc
View Source
OverSupplementalSemanticIdsOrEmpty()
Iterate over SupplementalSemanticIds, if set, and otherwise return an empty enumerable.
Declaration
public IEnumerable<IReference> OverSupplementalSemanticIdsOrEmpty()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<IReference> |
|
|
Improve this Doc
View Source
Accept the transformer
to transform this instance
for double dispatch.
Declaration
public T Transform<T>(Visitation.ITransformer<T> transformer)
Parameters
Returns
Type Parameters
|
Improve this Doc
View Source
Transform<TContext, T>(Visitation.ITransformerWithContext<TContext, T>, TContext)
Accept the transformer
to visit this instance
for double dispatch with the context
.
Declaration
public T Transform<TContext, T>(Visitation.ITransformerWithContext<TContext, T> transformer, TContext context)
Parameters
Returns
Type Parameters
Name |
Description |
TContext |
|
T |
|
|
Improve this Doc
View Source
ValueTypeOrDefault()
Return the ValueType or the default value
if it has not been set.
Declaration
public DataTypeDefXsd ValueTypeOrDefault()
Returns
Implements