/** * Embed another place. * * @param place The place to embed. */ public void embed(PlaceDescription place) { if (place.names != null) { this.names = this.names == null ? new ArrayList<TextValue>() : this.names; this.names.addAll(place.names); } this.type = this.type == null ? place.type : this.type; this.temporalDescription = this.temporalDescription == null ? place.temporalDescription : this.temporalDescription; this.latitude = this.latitude == null ? place.latitude : this.latitude; this.longitude = this.longitude == null ? place.longitude : this.longitude; this.spatialDescription = this.spatialDescription == null ? place.spatialDescription : this.spatialDescription; this.jurisdiction = this.jurisdiction == null ? place.jurisdiction : this.jurisdiction; if (this.display != null && place.display != null) { this.display.embed(place.display); } super.embed(place); } }