return Collections.emptyList();
}
List<EventDetailsItem> ret = new ArrayList<EventDetailsItem>();
if (eventDetails.getComment() != null) {
ret.add(new EventDetailsItem("Comment", eventDetails.getComment().getValue()));
}
if (eventDetails.getPlace() != null) {
String place;
if (eventDetails.getPlace().getPoint() != null) {
place = "Point: " + eventDetails.getPlace().getPoint();
} else {
place = eventDetails.getPlace().getType();
}
ret.add(new EventDetailsItem("Place", place));
}
if (eventDetails.getObjectRelations() != null) {
for (ObjectRelation objectRelation : eventDetails.getObjectRelations()) {
ret.add(new EventDetailsItem(objectRelation.getType(), objectRelation.getRefUid()));
}
}
if (eventDetails.getEventRelations() != null) {
for (EventRelation eventRelation : eventDetails.getEventRelations()) {
ret.add(new EventDetailsItem(eventRelation.getType(), eventRelation.getRefUid()));
}
}
return ret;
}