001 002/* 003 * Copyright (C) 2010 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.pidf; 009 010import java.net.URI; 011 012/** 013 * PIDF {@code <contact>} element. 014 */ 015public class Contact implements Cloneable { 016 017 private URI uri; 018 private float priority; 019 020 public float getPriority() { 021 return this.priority; 022 } 023 public void setPriority(float priority) { 024 this.priority = priority; 025 } 026 027 public URI getURI() { 028 return this.uri; 029 } 030 public void setURI(URI uri) { 031 this.uri = uri; 032 } 033 034// Cloneable 035 036 @Override 037 public Contact clone() { 038 try { 039 return (Contact)super.clone(); 040 } catch (CloneNotSupportedException e) { 041 throw new RuntimeException(e); 042 } 043 } 044} 045