gen_pkg.go (887B)
1 // Code generated by astool. DO NOT EDIT. 2 3 package vocab 4 5 // Type represents an ActivityStreams type. 6 type Type interface { 7 // GetJSONLDId returns the "id" property if it exists, and nil otherwise. 8 GetJSONLDId() JSONLDIdProperty 9 // GetTypeName returns the ActivityStreams type name. 10 GetTypeName() string 11 // JSONLDContext returns the JSONLD URIs required in the context string 12 // for this property and the specific values that are set. The value 13 // in the map is the alias used to import the property's value or 14 // values. 15 JSONLDContext() map[string]string 16 // Serialize converts this into an interface representation suitable for 17 // marshalling into a text or binary format. 18 Serialize() (map[string]interface{}, error) 19 // SetJSONLDId sets the "id" property. 20 SetJSONLDId(JSONLDIdProperty) 21 // VocabularyURI returns the vocabulary's URI as a string. 22 VocabularyURI() string 23 }