/*This code was generated using the UMPLE modeling language! Date of generation: 2008/07/29 15:15:39*/ /*This class drives: Point*/ package GIS.core; import GIS.*; import GIS.json.*; public class PointFeature extends Feature { //Class datatypes //Class association variables private Point point; //Registry of our system. GISRegistry registry = GISRegistry.getInstance(); //Constructor public PointFeature(String aName, Map aMap, FeatureType aFeatureType, Point aPoint) { super(aName, aMap, aFeatureType); point = aPoint; } public Point getPoint() { return point; } /* This class does not drive Point and therefore sets the association unidirectionally.*/ public void setPoint(Point aPoint) { point = aPoint; } public void delete() { //Delete all 1 ends. } public boolean areManyEndsNull() { return true; } /*********************************** * Returns the attribute list along with the * class ID in JSON format. ***********************************/ public JSONObject getAttributes() throws JSONException { JSONObject obj = new JSONObject(); obj.put("CLASS_ID", registry.getKey(this)); return obj; } }