001 002/* 003 * Copyright (C) 2010 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.pidf.lo.ecd; 009 010/** 011 * The {@code <dev:UniqueDeviceID>} element. 012 */ 013public class UniqueDeviceID implements Cloneable { 014 015 private String typeOfDeviceID; // mandatory 016 private String content; 017 018 public UniqueDeviceID() { 019 } 020 021 public UniqueDeviceID(String typeOfDeviceID, String content) { 022 this.setTypeOfDeviceID(typeOfDeviceID); 023 this.setContent(content); 024 } 025 026 public String getTypeOfDeviceID() { 027 return this.typeOfDeviceID; 028 } 029 public void setTypeOfDeviceID(String typeOfDeviceID) { 030 this.typeOfDeviceID = typeOfDeviceID; 031 } 032 033 public String getContent() { 034 return this.content; 035 } 036 public void setContent(String content) { 037 this.content = content; 038 } 039 040// Cloneable 041 042 @Override 043 public UniqueDeviceID clone() { 044 try { 045 return (UniqueDeviceID)super.clone(); 046 } catch (CloneNotSupportedException e) { 047 throw new RuntimeException(e); 048 } 049 } 050} 051