Project

General

Profile

Revision 7dcfc771

ID7dcfc7717da6ce0afda4bc76a1671f1a39eeabed
Parent f9bb9711
Child 09f4db2f

Added by Andreas Kohlbecker over 2 years ago

removing almost unused type check methods from TaggedText

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/TaggedCacheHelper.java
58 58
        boolean wasSeparator = true;
59 59
        while (index < tags.size()){
60 60

  
61
            if (! tags.get(index).isSeparator()){
61
            if (! tags.get(index).is(TagEnum.separator)){
62 62
                if (wasSeparator == false){
63 63
                    tags.add(index++, TaggedText.NewWhitespaceInstance());
64 64
                }else{
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/cache/TaggedText.java
11 11

  
12 12
import java.io.Serializable;
13 13

  
14
import javax.persistence.Transient;
15

  
16 14
import org.apache.commons.lang.StringUtils;
17 15

  
18 16
import eu.etaxonomy.cdm.common.CdmUtils;
......
60 58
		this.type = type;
61 59
	}
62 60

  
63
// *************************** DELEGATES ************************************/
64

  
65
	@Transient
66
	protected boolean isName() {
67
		return type.isName();
68
	}
69
	@Transient
70
	protected boolean isRank() {
71
		return type.isRank();
72
	}
73
	@Transient
74
	protected boolean isAuthors() {
75
		return type.isAuthors();
76
	}
77
	@Transient
78
	protected boolean isAppendedPhrase() {
79
		return type.isAppendedPhrase();
80
	}
81
	@Transient
82
	protected boolean isReference() {
83
		return type.isReference();
84
	}
85
	@Transient
86
	protected boolean isYear() {
87
		return type.isYear();
61
	protected boolean is(TagEnum type) {
62
		return type.equals(type);
88 63
	}
89
	@Transient
90
	protected boolean isFullName() {
91
		return type.isFullName();
92
	}
93
	@Transient
94
	protected boolean isNomStatus() {
95
		return type.isNomStatus();
96
	}
97
	@Transient
98
	protected boolean isSeparator() {
99
		return type.isSeparator();
100
	}
101
	@Transient
102
	protected boolean isHybridSign() {
103
		return type.isHybridSign();
104
	}
105

  
106

  
107
// ********************** toString() ***********************************************/
108 64

  
109 65
	@Override
110 66
	public String toString(){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)