svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.impl / src / main / java / org / gvsig / fmap / dal / complements / relatedfeatures / RelatedFeaturesFactory.java @ 44262
History | View | Annotate | Download (1.98 KB)
1 |
package org.gvsig.fmap.dal.complements.relatedfeatures; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.complements.RelatedFeatures; |
4 |
import org.gvsig.tools.ToolsLocator; |
5 |
import org.gvsig.tools.complement.AbstractComplementFactory; |
6 |
import org.gvsig.tools.complement.Complement; |
7 |
import org.gvsig.tools.complement.ComplementsManager; |
8 |
import org.gvsig.tools.dynobject.DynObjectManager; |
9 |
import org.gvsig.tools.dynobject.Tagged; |
10 |
|
11 |
/**
|
12 |
*
|
13 |
* @author jjdelcerro
|
14 |
*/
|
15 |
public class RelatedFeaturesFactory extends AbstractComplementFactory<Tagged>{ |
16 |
|
17 |
public RelatedFeaturesFactory() {
|
18 |
super(RelatedFeatures.COMPLEMENT_MANE);
|
19 |
} |
20 |
|
21 |
@Override
|
22 |
public Complement<Tagged> createComplement(Tagged object) {
|
23 |
return new RelatedFeaturesImpl(this, object); |
24 |
} |
25 |
|
26 |
|
27 |
public static void selfRegister() { |
28 |
ComplementsManager complementsManager = ToolsLocator.getComplementsManager(); |
29 |
complementsManager.registerComplement(new RelatedFeaturesFactory());
|
30 |
|
31 |
DynObjectManager dynObjectManager = ToolsLocator.getDynObjectManager(); |
32 |
dynObjectManager.registerTag( |
33 |
RelatedFeatures.DAL_RELATED_COLUMNS, |
34 |
"Part of a table of related features definition, stores the name of the fields to be shown in the table separated by two points."
|
35 |
); |
36 |
dynObjectManager.registerTag( |
37 |
RelatedFeatures.DAL_RELATED_TABLE, |
38 |
"Part of a table of related features definition, store the table name of features."
|
39 |
); |
40 |
dynObjectManager.registerTag( |
41 |
RelatedFeatures.DAL_RELATED_UNIQUE_FIELD_NAME, |
42 |
"Part of a table of related features definition, store the name of the field that is a unique key in the features table."
|
43 |
); |
44 |
// dynObjectManager.registerTag(
|
45 |
// RelatedFeatures.DAL_RELATED_FOREING_KEY_NAME,
|
46 |
// "Part of a table of related features definition, store the name of the field that is the foreing key in the features table."
|
47 |
// );
|
48 |
} |
49 |
} |