Revision 60451921
Added by Andreas Müller almost 4 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/TemporalData.java | ||
---|---|---|
47 | 47 |
@XmlElement(name = "Period") |
48 | 48 |
private ExtendedTimePeriod period = ExtendedTimePeriod.NewExtendedInstance(); |
49 | 49 |
|
50 |
|
|
51 | 50 |
/** |
52 |
* Creates a period fact with the given period.
|
|
51 |
* Creates a temporal fact with the given period.
|
|
53 | 52 |
*/ |
54 | 53 |
public static TemporalData NewInstance(ExtendedTimePeriod period){ |
55 | 54 |
TemporalData result = new TemporalData(); |
... | ... | |
57 | 56 |
return result; |
58 | 57 |
} |
59 | 58 |
|
59 |
public static TemporalData NewInstance(Feature feature){ |
|
60 |
TemporalData result = new TemporalData(); |
|
61 |
result.setFeature(feature); |
|
62 |
return result; |
|
63 |
} |
|
64 |
|
|
65 |
public static TemporalData NewInstance(Feature feature, ExtendedTimePeriod period){ |
|
66 |
TemporalData result = new TemporalData(); |
|
67 |
result.setFeature(feature); |
|
68 |
result.setPeriod(period); |
|
69 |
return result; |
|
70 |
} |
|
71 |
|
|
60 | 72 |
// *************************** CONSTRUCTOR *************************************/ |
61 | 73 |
|
62 | 74 |
/** |
Also available in: Unified diff
fix #9126 implement phenology import