Class AddAssignModelReferenceRule<TSemanticElement, TReference>
Denotes the abstract class for a rule that represents a model reference assigned to a collection
public abstract class AddAssignModelReferenceRule<TSemanticElement, TReference> : AddAssignReferenceRule<TSemanticElement, TReference> where TSemanticElement : class, IModelElement where TReference : class, IModelElement
Type Parameters
TSemanticElementthe type of the semantic element
TReferencethe type of the reference
- Inheritance
-
ResolveRule<TSemanticElement, TReference>AddAssignReferenceRule<TSemanticElement, TReference>AddAssignModelReferenceRule<TSemanticElement, TReference>
- Derived
- Inherited Members
Methods
GetReferenceString(TReference, object, ParseContext)
Gets the printed reference for the given object
protected override string GetReferenceString(TReference reference, object contextElement, ParseContext context)
Parameters
referenceTReferencethe referenced object
contextElementobjectthe semantic context element
contextParseContextthe parse context
Returns
- string
a string representation
GetResolveErrorMessage(string)
Gets the error message displayed when resolving an element failed
protected override string GetResolveErrorMessage(string input)
Parameters
inputstringthe input string that could not be resolved
Returns
- string
An error message