Statistics
| Revision:

root / trunk / libraries / libFMap_geometries / src / org / gvsig / fmap / geom / operation / GeometryOperationContext.java @ 20837

History | View | Annotate | Download (578 Bytes)

1
package org.gvsig.fmap.geom.operation;
2

    
3
import java.util.HashMap;
4
import java.util.Map;
5

    
6
/**
7
 * Clase base que sirve de contenedor de parámetros
8
 * para las operaciones sobre geometrías.
9
 * 
10
 * Normalmente cada GeometryOperation deberá extender esta clase
11
 * e identificar los parámetros mediante getters/setters.
12
 * @author jyarza
13
 *
14
 */
15
public class GeometryOperationContext {
16
        
17
        private Map ctx = new HashMap();
18
        
19
        public Object getAttribute(String name) {
20
                return ctx.get(name);
21
        }
22
        
23
        public void setAttribute(String name, Object value) {
24
                ctx.put(name, value);
25
        }
26

    
27
}