Revision 32880 branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dgn/legend/DGNGetLegendBuilder.java
DGNGetLegendBuilder.java | ||
---|---|---|
32 | 32 |
import org.gvsig.tools.dynobject.DynClass; |
33 | 33 |
import org.gvsig.tools.dynobject.DynMethod; |
34 | 34 |
import org.gvsig.tools.dynobject.DynObject; |
35 |
import org.gvsig.tools.dynobject.DynObjectManager; |
|
35 | 36 |
import org.gvsig.tools.dynobject.exception.DynMethodException; |
36 | 37 |
import org.gvsig.tools.dynobject.exception.DynMethodNotSupportedException; |
37 | 38 |
|
38 | 39 |
public class DGNGetLegendBuilder implements DynMethod { |
39 |
private static Integer code = null;
|
|
40 |
private static int code = DynObjectManager.NULLCODE;
|
|
40 | 41 |
|
41 |
static void register(DynClass dgnLegendDynClass) {
|
|
42 |
if (code != null) {
|
|
42 |
static void register(DynClass DGNDynClass) {
|
|
43 |
if (code != DynObjectManager.NULLCODE) {
|
|
43 | 44 |
return; |
44 | 45 |
} |
45 |
code = new Integer(ToolsLocator.getDynObjectManager() |
|
46 |
.registerDynMethod( |
|
47 |
dgnLegendDynClass, new DGNGetLegendBuilder())); |
|
46 |
code = ToolsLocator.getDynObjectManager().registerDynMethod( |
|
47 |
DGNDynClass, |
|
48 |
new DGNGetLegendBuilder() |
|
49 |
); |
|
48 | 50 |
|
49 | 51 |
} |
52 |
|
|
50 | 53 |
public int getCode() throws DynMethodNotSupportedException { |
51 |
return code.intValue();
|
|
54 |
return code; |
|
52 | 55 |
} |
53 | 56 |
|
54 | 57 |
public String getDescription() { |
Also available in: Unified diff