// GetNamesForType returns the item names provided in the metadata for a particular type
GetNamesForType returns the item names provided in the metadata for a particular type
// GetNamesForType returns the item names provided in the metadata for a particular type
func (m Metadata) GetNamesForType(metadataType string) []string {
	fieldName := GetFieldNameForDirName(metadataType)
	value := reflect.ValueOf(m)
	field := value.FieldByName(fieldName)
	if field.IsValid() {
		return field.Interface().([]string)
	}
	return nil
}
func ( m Metadata ) GetNamesForType ( metadataType string ) [ ] string { fieldName := GetFieldNameForDirName ( metadataType ) value := reflect . ValueOf ( m ) field := value . FieldByName ( fieldName ) if field . IsValid ( ) { return field . Interface ( ) . ( [ ] string ) } return nil }
GetNamesForType returns the item names provided in the metadata for a particular type
GetNamesForType returns the item names provided in the metadata for a particular type