/*This code was generated using the UMPLE modeling language! Date of generation: 2008/07/29 15:15:38*/ /*This class drives: */ package GIS.core; import GIS.*; import GIS.json.*; public class Bitmap { //Class datatypes private String bits; //Class association variables private RegionFeatureType regionFeatureType; //Registry of our system. GISRegistry registry = GISRegistry.getInstance(); //Constructor public Bitmap(String aBits, RegionFeatureType aRegionFeatureType) { bits = aBits; regionFeatureType = aRegionFeatureType; } public boolean setBits(String aBits) { bits = aBits; return true; } public String getBits() { return bits; } public RegionFeatureType getRegionFeatureType() { return regionFeatureType; } /* This class does not drive RegionFeatureType and therefore sets the association unidirectionally.*/ public void setRegionFeatureType(RegionFeatureType aRegionFeatureType) { regionFeatureType = aRegionFeatureType; } public void delete() { //Delete all 1 ends. regionFeatureType.deleteFillPattern(this); } 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)); obj.put("bits", getBits()); return obj; } }