Revision 50778c94
Added by Andreas Müller almost 2 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/name/TypeDesignationSetFormatter.java | ||
---|---|---|
84 | 84 |
this.withNameIfAvailable = withNameIfAvailable; |
85 | 85 |
} |
86 | 86 |
|
87 |
public String format(TypeDesignationSetManager manager){
|
|
87 |
public String format(TypeDesignationSetContainer manager){
|
|
88 | 88 |
return TaggedCacheHelper.createString(toTaggedText(manager)); |
89 | 89 |
} |
90 | 90 |
|
91 |
public String format(TypeDesignationSetManager manager, HTMLTagRules htmlTagRules){
|
|
91 |
public String format(TypeDesignationSetContainer manager, HTMLTagRules htmlTagRules){
|
|
92 | 92 |
return TaggedCacheHelper.createString(toTaggedText(manager), htmlTagRules); |
93 | 93 |
} |
94 | 94 |
|
95 |
public List<TaggedText> toTaggedText(TypeDesignationSetManager manager){
|
|
95 |
public List<TaggedText> toTaggedText(TypeDesignationSetContainer manager){
|
|
96 | 96 |
return buildTaggedText(manager); |
97 | 97 |
} |
98 | 98 |
|
99 |
private List<TaggedText> buildTaggedText(TypeDesignationSetManager manager){
|
|
99 |
private List<TaggedText> buildTaggedText(TypeDesignationSetContainer manager){
|
|
100 | 100 |
boolean withBrackets = true; //still unclear if this should become a parameter or should be always true |
101 | 101 |
|
102 | 102 |
TaggedTextBuilder finalBuilder = new TaggedTextBuilder(); |
... | ... | |
121 | 121 |
return finalBuilder.getTaggedText(); |
122 | 122 |
} |
123 | 123 |
|
124 |
private void buildTaggedTextForSingleTypeSet(TypeDesignationSetManager manager, boolean withBrackets,
|
|
124 |
private void buildTaggedTextForSingleTypeSet(TypeDesignationSetContainer manager, boolean withBrackets,
|
|
125 | 125 |
TaggedTextBuilder finalBuilder, int typeSetCount, VersionableEntity baseEntity, TypeDesignationSetType lastWsType) { |
126 | 126 |
|
127 | 127 |
Map<VersionableEntity,TypeDesignationSet> |
... | ... | |
184 | 184 |
return false; |
185 | 185 |
} |
186 | 186 |
|
187 |
private int buildTaggedTextForSingleTypeStatus(TypeDesignationSetManager manager,
|
|
187 |
private int buildTaggedTextForSingleTypeStatus(TypeDesignationSetContainer manager,
|
|
188 | 188 |
TaggedTextBuilder workingsetBuilder, TypeDesignationSet typeDesignationSet, |
189 | 189 |
int typeStatusCount, TypeDesignationStatusBase<?> typeStatus, |
190 | 190 |
TypeDesignationSetType lastWsType, int typeSetCount) { |
Also available in: Unified diff
ref #10089 rename TypeDesignationSetManager to TypeDesignationSetContainer in cdmlib