Revision 40359 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/operation/relationship/DefaultRelationshipGeometryOperationContext.java
DefaultRelationshipGeometryOperationContext.java | ||
---|---|---|
40 | 40 |
public class DefaultRelationshipGeometryOperationContext extends |
41 | 41 |
GeometryOperationContext { |
42 | 42 |
|
43 |
private Geometry geom = null;
|
|
43 |
private static String GEOM = "geom";
|
|
44 | 44 |
|
45 | 45 |
public DefaultRelationshipGeometryOperationContext(){ |
46 | 46 |
} |
47 | 47 |
|
48 | 48 |
public DefaultRelationshipGeometryOperationContext(Geometry geom){ |
49 |
this.setGeom(geom);
|
|
49 |
this.setAttribute(GEOM, geom);
|
|
50 | 50 |
} |
51 | 51 |
|
52 | 52 |
protected Geometry getGeom() { |
53 |
return geom;
|
|
53 |
return ((Geometry)this.getAttribute(GEOM));
|
|
54 | 54 |
} |
55 | 55 |
|
56 | 56 |
protected void setGeom(Geometry geom) { |
57 |
this.geom = geom;
|
|
57 |
this.setAttribute(GEOM, geom);
|
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
} |
Also available in: Unified diff