| Revision 1169,
558 bytes
checked in by stoecker, 3 years ago
(diff) |
|
removed usage of tab stops
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // License: GPL. |
|---|
| 2 | package org.openstreetmap.josm.data.gpx; |
|---|
| 3 | |
|---|
| 4 | import java.util.HashMap; |
|---|
| 5 | import java.util.Map; |
|---|
| 6 | |
|---|
| 7 | /** |
|---|
| 8 | * Base class for various classes in the GPX model. |
|---|
| 9 | * The "attr" hash is used to store the XML payload |
|---|
| 10 | * (not only XML attributes!) |
|---|
| 11 | * |
|---|
| 12 | * @author Frederik Ramm <frederik@remote.org> |
|---|
| 13 | * |
|---|
| 14 | */ |
|---|
| 15 | public class WithAttributes { |
|---|
| 16 | |
|---|
| 17 | public Map<String, Object> attr = new HashMap<String, Object>(0); |
|---|
| 18 | |
|---|
| 19 | public String getString(String key) { |
|---|
| 20 | Object value = attr.get(key); |
|---|
| 21 | return (value instanceof String) ? (String)value : null; |
|---|
| 22 | } |
|---|
| 23 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.