func (this *SightingType) AddDescription(format, value string) { var data common.StructuredTextType data.AddFormat(format) data.AddValue(value) this.Description = &data }
func (this *IndicatorType) AddShortDescription(format, markingidref, value string) { if this.ShortDescriptions == nil { a := make([]common.StructuredTextType, 0) this.ShortDescriptions = a } var data common.StructuredTextType data.CreateId() data.AddMarkingIdRef(markingidref) data.AddFormat(format) data.AddValue(value) this.ShortDescriptions = append(this.ShortDescriptions, data) }