* Get a mapping of all properties and their values. * * Returns an object of propertyName -> value.
()
| 357 | * Returns an object of propertyName -> value. |
| 358 | */ |
| 359 | getProperties(): { [propertyName: string]: any } { |
| 360 | const props: { [propertyName: string]: any } = {}; |
| 361 | for (const name in this.properties) { |
| 362 | props[name] = this.properties[name].getValue(); |
| 363 | } |
| 364 | |
| 365 | return props; |
| 366 | } |
| 367 | |
| 368 | /** |
| 369 | * Determine whether or not this thing has a given property. |