001 002/* 003 * Copyright (C) 2010 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.pidf.held; 009 010import org.dellroad.jibxbindings.pidf.Presence; 011 012/** 013 * The {@code <held:locationResponse>} XML element. 014 */ 015public class LocationResponse implements Cloneable { 016 017 private LocationUriSet locationUriSet; 018 private Presence presence; 019 020 public LocationUriSet getLocationUriSet() { 021 return this.locationUriSet; 022 } 023 public void setLocationUriSet(LocationUriSet locationUriSet) { 024 this.locationUriSet = locationUriSet; 025 } 026 027 public Presence getPresence() { 028 return this.presence; 029 } 030 public void setPresence(Presence presence) { 031 this.presence = presence; 032 } 033 034// Cloneable 035 036 @Override 037 public LocationResponse clone() { 038 final LocationResponse clone; 039 try { 040 clone = (LocationResponse)super.clone(); 041 } catch (CloneNotSupportedException e) { 042 throw new RuntimeException(e); 043 } 044 clone.locationUriSet = this.locationUriSet != null ? this.locationUriSet.clone() : null; 045 clone.presence = this.presence != null ? this.presence.clone() : null; 046 return clone; 047 } 048} 049