4 package eu
.etaxonomy
.cdm
.io
.markup
;
6 import java
.util
.ArrayList
;
10 import org
.apache
.commons
.lang3
.StringUtils
;
12 import eu
.etaxonomy
.cdm
.model
.description
.Feature
;
15 * This class is meant to hold all information about a feature that is needed by the {@link FeatureSorter} class.
19 public class FeatureSorterInfo
{
23 private List
<FeatureSorterInfo
> subFeatures
= new ArrayList
<>();
25 public FeatureSorterInfo(Feature feature
){
26 this.setUuid(feature
.getUuid());
29 public FeatureSorterInfo(UUID uuid
){
34 public UUID
getUuid() {
38 private void setUuid(UUID uuid
) {
42 public List
<FeatureSorterInfo
> getSubFeatures() {
46 public void addSubFeature(FeatureSorterInfo subFeature
){
47 subFeatures
.add(subFeature
);
51 public String
toString(){
52 if (StringUtils
.isNotBlank(title
)){
54 }else if (uuid
!= null){
55 return uuid
.toString();
57 return super.toString();