com.google.gdata.model.atom
Class Contributor

java.lang.Object
  extended by com.google.gdata.model.Element
      extended by com.google.gdata.model.atom.Person
          extended by com.google.gdata.model.atom.Contributor
All Implemented Interfaces:
IPerson

public class Contributor
extends Person

Contributor element, modifies Person to add contributor QName.


Field Summary
static ElementKey<java.lang.Void,Contributor> KEY
          The key for this element.
 
Fields inherited from class com.google.gdata.model.atom.Person
EMAIL, NAME, URI
 
Constructor Summary
  Contributor()
          Constructs a new Contributor instance.
protected Contributor(ElementKey<?,?> key)
          Constructs a new Contributor instance with the given metadata.
protected Contributor(ElementKey<?,? extends Contributor> key, Element source)
          Constructs a new instance by doing a shallow copy of data from an existing Element instance.
  Contributor(java.lang.String name)
          Constructs a new Contributor instance with the given name.
  Contributor(java.lang.String name, java.net.URI uri, java.lang.String email)
          Constructs a new Contributor instance with the given name, uri, and email.
 
Method Summary
static void registerMetadata(MetadataRegistry registry)
          Registers the metadata for this element.
 
Methods inherited from class com.google.gdata.model.atom.Person
getEmail, getName, getNameLang, getUri, getUriUri, setEmail, setName, setNameLang, setUri, setUri
 
Methods inherited from class com.google.gdata.model.Element
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, equals, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hashCode, hasTextValue, isLocked, lock, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, validate, visit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY

public static final ElementKey<java.lang.Void,Contributor> KEY
The key for this element.

Constructor Detail

Contributor

public Contributor()
Constructs a new Contributor instance. Default metadata is associated with this instance.


Contributor

protected Contributor(ElementKey<?,?> key)
Constructs a new Contributor instance with the given metadata.


Contributor

protected Contributor(ElementKey<?,? extends Contributor> key,
                      Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance. Will use the given ElementKey as the key for the element.

Parameters:
key - the element key to use for this element.
source - source element

Contributor

public Contributor(java.lang.String name)
Constructs a new Contributor instance with the given name.


Contributor

public Contributor(java.lang.String name,
                   java.net.URI uri,
                   java.lang.String email)
Constructs a new Contributor instance with the given name, uri, and email.

Method Detail

registerMetadata

public static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.