Class SpecificAssetId
A specific asset ID describes a generic supplementary identifying attribute of the asset.
Inheritance
Inherited Members
Namespace: AasCore.Aas3_0
Assembly: AasCore.Aas3_0.dll
Syntax
public class SpecificAssetId : ISpecificAssetId, IHasSemantics, IClass
Remarks
The specific asset ID is not necessarily globally unique.
Constraints:
- Constraint AASd-133: ExternalSubjectId shall be an external reference, i.e. Type = ExternalReference.
Constructors
| Improve this Doc View SourceSpecificAssetId(String, String, IReference, List<IReference>, IReference)
Declaration
public SpecificAssetId(string name, string value, IReference semanticId = null, List<IReference> supplementalSemanticIds = null, IReference externalSubjectId = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | value | |
IReference | semanticId | |
System.Collections.Generic.List<IReference> | supplementalSemanticIds | |
IReference | externalSubjectId |
Properties
| Improve this Doc View SourceExternalSubjectId
The (external) subject the key belongs to or has meaning to.
Declaration
public IReference ExternalSubjectId { get; set; }
Property Value
Type | Description |
---|---|
IReference |
Remarks
This is a global reference.
Name
Name of the identifier
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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
Type | Description |
---|---|
IReference |
Remarks
It is recommended to use a global reference.
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> |
Remarks
It is recommended to use a global reference.
Value
The value of the specific asset identifier with the corresponding name.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAccept(Visitation.IVisitor)
Accept the visitor
to visit this instance
for double dispatch.
Declaration
public void Accept(Visitation.IVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
Visitation.IVisitor | visitor |
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 | Name | Description |
---|---|---|
Visitation.IVisitorWithContext<TContext> | visitor | |
TContext | context |
Type Parameters
Name | Description |
---|---|
TContext |
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> |
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> |
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> |
Transform<T>(Visitation.ITransformer<T>)
Accept the transformer
to transform this instance
for double dispatch.
Declaration
public T Transform<T>(Visitation.ITransformer<T> transformer)
Parameters
Type | Name | Description |
---|---|---|
Visitation.ITransformer<T> | transformer |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
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
Type | Name | Description |
---|---|---|
Visitation.ITransformerWithContext<TContext, T> | transformer | |
TContext | context |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
TContext | |
T |