Project

General

Profile

« Previous | Next » 

Revision 41d4823b

Added by Patrick Plitzner over 5 years ago

ref #8011 Add representation text to TermDtos

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dto/AbstractTermDto.java
32 32
    private final Set<Representation> representations;
33 33
    private String representation_L10n = null;
34 34
    private String representation_L10n_abbreviatedLabel = null;
35
    private String representation_L10n_text = null;
35 36

  
36 37
    public AbstractTermDto(UUID uuid, Set<Representation> representations) {
37 38
        this.representations = representations;
......
52 53
        if (representation_L10n.getAbbreviatedLabel() != null) {
53 54
            setRepresentation_L10n_abbreviatedLabel(representation_L10n.getAbbreviatedLabel());
54 55
        }
56
        if (representation_L10n.getText() != null) {
57
            setRepresentation_L10n_text(representation_L10n.getText());
58
        }
55 59
    }
56 60

  
57 61
    public URI getUri() {
......
91 95
        this.representation_L10n_abbreviatedLabel = representation_L10n_abbreviatedLabel;
92 96
    }
93 97

  
98
    public String getRepresentation_L10n_text() {
99
        return representation_L10n_text;
100
    }
101

  
102
    public void setRepresentation_L10n_text(String representation_L10n_text) {
103
        this.representation_L10n_text = representation_L10n_text;
104
    }
105

  
106

  
94 107
    public UUID getUuid() {
95 108
        return uuid;
96 109
    }
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dto/ITermRepresentation_L10n.java
20 20
 */
21 21
public interface ITermRepresentation_L10n {
22 22

  
23
    /**
24
     * @return the label
25
     */
26 23
    public abstract String getLabel();
27 24

  
28
    /**
29
     * @return the abbreviatedLabel
30
     */
31 25
    public abstract String getAbbreviatedLabel();
32 26

  
27
    public abstract String getText();
28

  
33 29
    public String getLanguageIso();
34 30

  
35 31
    public String getLanguageUuid();
......
43 39
     */
44 40
    public abstract void localize(TermBase term, boolean useInverseRepresentation);
45 41

  
46
    /**
47
     * @param representations
48
     */
49 42
    void localize(Set<Representation> representations);
50 43

  
51 44
}
cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/l10n/TermRepresentation_L10n.java
33 33

  
34 34
    String label = null;
35 35
    String abbreviatedLabel = null;
36
    String text = null;
36 37
    String languageIso = null;
37 38
    String languageUuid = null;
38 39

  
......
92 93

  
93 94
            abbreviatedLabel = representation.getAbbreviatedLabel();
94 95

  
96
            text = representation.getText();
97

  
95 98
            Language lang = representation.getLanguage();
96 99
            if (lang != null){
97 100
                this.languageIso = lang.getIso639_2();
......
127 130
        this.abbreviatedLabel = abbreviatedLabel;
128 131
    }
129 132

  
133
    @Override
134
    public String getText() {
135
        return text;
136
    }
137

  
138
    public void setText(String text) {
139
        this.text = text;
140
    }
141

  
142
    @Override
130 143
    public String getLanguageIso() {
131 144
        return languageIso;
132 145
    }
......
135 148
        this.languageIso = languageIso;
136 149
    }
137 150

  
151
    @Override
138 152
    public String getLanguageUuid() {
139 153
        return languageUuid;
140 154
    }

Also available in: Unified diff