Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public override bool AnnotatedElement_HasAnnotation(AnnotatedElement @this, string name)
 {
     return @this.GetAnnotation(name) != null;
 }
Esempio n. 4
0
 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;
 }