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