1 15 package org.apache.hivemind.definition.impl; 16 17 import org.apache.hivemind.Location; 18 import org.apache.hivemind.definition.ExtensionPointDefinition; 19 import org.apache.hivemind.definition.ModuleDefinition; 20 import org.apache.hivemind.definition.Visibility; 21 import org.apache.hivemind.util.Defense; 22 23 28 public class ExtensionPointDefinitionImpl implements ExtensionPointDefinition 29 { 30 private ModuleDefinition _module; 31 32 private String _id; 33 34 private Location _location; 35 36 private Visibility _visibility; 37 38 public ExtensionPointDefinitionImpl(ModuleDefinition module) 39 { 40 Defense.notNull(module, "module"); 41 _module = module; 42 } 43 44 public ExtensionPointDefinitionImpl(ModuleDefinition module, String id, Location location, Visibility visibility) 45 { 46 this(module); 47 _id = id; 48 _location = location; 49 _visibility = visibility; 50 } 51 52 55 public String getModuleId() 56 { 57 return _module.getId(); 58 } 59 60 63 protected ModuleDefinition getModule() 64 { 65 return _module; 66 } 67 68 71 public String getQualifiedId() 72 { 73 return getModuleId() + "." + _id; 74 } 75 76 79 public String getId() 80 { 81 return _id; 82 } 83 84 88 public void setId(String id) 89 { 90 _id = id; 91 } 92 93 96 public Location getLocation() 97 { 98 return _location; 99 } 100 101 104 public void setLocation(Location location) 105 { 106 _location = location; 107 } 108 109 112 public Visibility getVisibility() 113 { 114 return _visibility; 115 } 116 117 120 public void setVisibility(Visibility visibility) 121 { 122 _visibility = visibility; 123 } 124 125 } 126 | Popular Tags |