Minor update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@85976 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1b8282f9c6
commit
560bf36210
|
@ -1150,11 +1150,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
TRDescriptionsMetadata trDescriptionsMetadata=new TRDescriptionsMetadata();
|
||||
ArrayList<TRLocalizedText> listTRLocalizedText=new ArrayList<TRLocalizedText>();
|
||||
List<LocalizedText> lLocalizedText=((DescriptionsMetadata) tMetadata).getTexts();
|
||||
int i=0;
|
||||
for(LocalizedText lt:lLocalizedText){
|
||||
TRLocalizedText trLocalizedText=new TRLocalizedText();
|
||||
trLocalizedText.setId(i);
|
||||
trLocalizedText.setValue(lt.getValue());
|
||||
trLocalizedText.setLocaleCode(lt.getLocaleCode());
|
||||
listTRLocalizedText.add(trLocalizedText);
|
||||
i++;
|
||||
}
|
||||
trDescriptionsMetadata.setListTRLocalizedText(listTRLocalizedText);
|
||||
listTRMetadata.add(trDescriptionsMetadata);
|
||||
|
@ -1164,11 +1167,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
TRNamesMetadata trNamesMetadata=new TRNamesMetadata();
|
||||
ArrayList<TRLocalizedText> listTRLocalizedText=new ArrayList<TRLocalizedText>();
|
||||
List<LocalizedText> lLocalizedText=((NamesMetadata) tMetadata).getTexts();
|
||||
int i=0;
|
||||
for(LocalizedText lt:lLocalizedText){
|
||||
TRLocalizedText trLocalizedText=new TRLocalizedText();
|
||||
trLocalizedText.setId(i);
|
||||
trLocalizedText.setValue(lt.getValue());
|
||||
trLocalizedText.setLocaleCode(lt.getLocaleCode());
|
||||
listTRLocalizedText.add(trLocalizedText);
|
||||
i++;
|
||||
}
|
||||
trNamesMetadata.setListTRLocalizedText(listTRLocalizedText);
|
||||
listTRMetadata.add(trNamesMetadata);
|
||||
|
|
|
@ -14,6 +14,7 @@ public class TRLocalizedText implements Serializable {
|
|||
|
||||
private static final long serialVersionUID = 5208229342328376604L;
|
||||
|
||||
private int id;
|
||||
private String value;
|
||||
private String localeCode;
|
||||
|
||||
|
@ -33,11 +34,20 @@ public class TRLocalizedText implements Serializable {
|
|||
this.localeCode = localeCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TRLocalizedText [value=" + value + ", localeCode=" + localeCode
|
||||
+ "]";
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TRLocalizedText [id=" + id + ", value=" + value
|
||||
+ ", localeCode=" + localeCode + "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue