Beispiel #1
0
func (this *SightingType) AddDescription(format, value string) {
	var data common.StructuredTextType
	data.AddFormat(format)
	data.AddValue(value)

	this.Description = &data
}
Beispiel #2
0
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)
}