Revision f1fc578c
Added by Andreas Müller about 11 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/markup/FeatureSorterInfo.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.cdm.io.markup; |
5 | 5 |
|
6 |
import java.util.ArrayList; |
|
7 |
import java.util.List; |
|
6 | 8 |
import java.util.UUID; |
7 | 9 |
|
8 | 10 |
import org.apache.commons.lang.StringUtils; |
... | ... | |
18 | 20 |
|
19 | 21 |
private UUID uuid; |
20 | 22 |
private String title; |
23 |
private List<FeatureSorterInfo> subFeatures = new ArrayList<FeatureSorterInfo>(); |
|
21 | 24 |
|
22 | 25 |
public FeatureSorterInfo(Feature feature){ |
23 | 26 |
this.setUuid(feature.getUuid()); |
... | ... | |
35 | 38 |
private void setUuid(UUID uuid) { |
36 | 39 |
this.uuid = uuid; |
37 | 40 |
} |
41 |
|
|
42 |
public List<FeatureSorterInfo> getSubFeatures() { |
|
43 |
return subFeatures; |
|
44 |
} |
|
45 |
|
|
46 |
public void addSubFeature(FeatureSorterInfo subFeature){ |
|
47 |
subFeatures.add(subFeature); |
|
48 |
} |
|
49 |
|
|
38 | 50 |
@Override |
39 | 51 |
public String toString(){ |
40 | 52 |
if (StringUtils.isNotBlank(title)){ |
Also available in: Unified diff
new handling for subchars in feature sorter