svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / feature / AbstractDataProfile.java @ 44297
History | View | Annotate | Download (752 Bytes)
1 | 44189 | jjdelcerro | package org.gvsig.fmap.dal.feature; |
---|---|---|---|
2 | |||
3 | /**
|
||
4 | *
|
||
5 | * @author jjdelcerro
|
||
6 | */
|
||
7 | public abstract class AbstractDataProfile implements DataProfile { |
||
8 | |||
9 | 44253 | jjdelcerro | private final String id; |
10 | 44189 | jjdelcerro | private final String name; |
11 | private final Class dataClass; |
||
12 | |||
13 | 44253 | jjdelcerro | public AbstractDataProfile(String id, String name, Class dataClass) { |
14 | this.id = id;
|
||
15 | 44189 | jjdelcerro | this.name = name;
|
16 | this.dataClass = dataClass;
|
||
17 | } |
||
18 | 44253 | jjdelcerro | |
19 | public AbstractDataProfile(String name, Class dataClass) { |
||
20 | this(name, name, dataClass);
|
||
21 | } |
||
22 | |||
23 | 44189 | jjdelcerro | @Override
|
24 | 44253 | jjdelcerro | public String getID() { |
25 | return this.id; |
||
26 | } |
||
27 | |||
28 | @Override
|
||
29 | 44189 | jjdelcerro | public String getName() { |
30 | return this.name; |
||
31 | } |
||
32 | |||
33 | @Override
|
||
34 | public Class getDataClass() { |
||
35 | return this.dataClass; |
||
36 | } |
||
37 | |||
38 | } |