public override bool AnnotatedElement_HasAnnotationProperty(AnnotatedElement @this, string annotationName, string propertyName) { if (@this == null) return false; Annotation annot = @this.GetAnnotation(annotationName); if (annot != null) { return annot.HasProperty(propertyName); } return false; }
public override object AnnotatedElement_GetAnnotationPropertyValue(AnnotatedElement @this, string annotationName, string propertyName) { if (@this == null) return null; Annotation annot = @this.GetAnnotation(annotationName); if (annot != null) { return annot.GetPropertyValue(propertyName); } return null; }
public override bool AnnotatedElement_HasAnnotation(AnnotatedElement @this, string name) { return @this.GetAnnotation(name) != null; }
public override Annotation AnnotatedElement_AddAnnotation(AnnotatedElement @this, string name) { Annotation result = @this.GetAnnotation(name); if (result == null) { result = SoalFactory.Instance.CreateAnnotation(); result.Name = name; @this.Annotations.Add(result); } return result; }