001 002/* 003 * Copyright (C) 2010 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.pidf.lo; 009 010/** 011 * One field in a {@code <ca:civicAddress>} element as defined in RFC 5139. 012 * This differs from {@link org.dellroad.jibxbindings.pidf.LangContent} in that the field content is whitespace normalized. 013 */ 014public class CAValue implements Cloneable { 015 016 private String lang; 017 private String content; 018 019 /** 020 * Get the language. Typically comes from an {@code xml:lang} attribute. 021 */ 022 public String getLang() { 023 return this.lang; 024 } 025 public void setLang(String lang) { 026 this.lang = lang; 027 } 028 029 /** 030 * Get the string content. 031 */ 032 public String getContent() { 033 return this.content; 034 } 035 public void setContent(String content) { 036 this.content = content; 037 } 038 039// Cloneable 040 041 @Override 042 public CAValue clone() { 043 try { 044 return (CAValue)super.clone(); 045 } catch (CloneNotSupportedException e) { 046 throw new RuntimeException(e); 047 } 048 } 049} 050