blob: 3875e13d5c08bba8d8e459f36655382f9f11cf00 [file] [log] [blame]
package org.codehaus.jackson.jaxb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAttribute;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
/**
* Attributes common across all atom types
*
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision$
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
public class CommonAttributes
{
private String language;
private URI base;
private Map<?,?> extensionAttributes = new HashMap<String,String>();
@XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
public String getLanguage()
{
return language;
}
public void setLanguage(String language)
{
this.language = language;
}
@XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
public URI getBase()
{
return base;
}
public void setBase(URI base)
{
this.base = base;
}
@XmlAnyAttribute
public Map<?,?> getExtensionAttributes()
{
return extensionAttributes;
}
}