com.google.gdata.model.gd
Class Organization

java.lang.Object
  extended by com.google.gdata.model.Element
      extended by com.google.gdata.model.gd.Organization

public class Organization
extends Element

Describes an organization (like Company).


Nested Class Summary
static class Organization.Rel
          Organization type.
 
Field Summary
static ElementKey<java.lang.Void,Organization> KEY
          The key for this element.
static AttributeKey<java.lang.String> LABEL
          Label.
static AttributeKey<java.lang.Boolean> PRIMARY
          Whether this is the primary organization.
static AttributeKey<java.lang.String> REL
          Organization type.
 
Constructor Summary
  Organization()
          Constructs an instance using the default key.
protected Organization(ElementKey<?,? extends Organization> key)
          Subclass constructor, allows subclasses to supply their own element key.
protected Organization(ElementKey<?,? extends Organization> key, Element source)
          Constructs a new instance by doing a shallow copy of data from an existing Element instance.
 
Method Summary
 java.lang.String getLabel()
          Returns the label.
 OrgDepartment getOrgDepartment()
          Returns the department name in organization.
 OrgJobDescription getOrgJobDescription()
          Returns the job description.
 OrgName getOrgName()
          Returns the name of organization.
 OrgSymbol getOrgSymbol()
          Returns the organization symbol/ticker.
 OrgTitle getOrgTitle()
          Returns the position in organization.
 java.lang.Boolean getPrimary()
          Returns the whether this is the primary organization.
 java.lang.String getRel()
          Returns the organization type.
 Where getWhere()
          Returns the office location.
 boolean hasLabel()
          Returns whether it has the label.
 boolean hasOrgDepartment()
          Returns whether it has the department name in organization.
 boolean hasOrgJobDescription()
          Returns whether it has the job description.
 boolean hasOrgName()
          Returns whether it has the name of organization.
 boolean hasOrgSymbol()
          Returns whether it has the organization symbol/ticker.
 boolean hasOrgTitle()
          Returns whether it has the position in organization.
 boolean hasPrimary()
          Returns whether it has the whether this is the primary organization.
 boolean hasRel()
          Returns whether it has the organization type.
 boolean hasWhere()
          Returns whether it has the office location.
 Organization lock()
          Locks this element.
static void registerMetadata(MetadataRegistry registry)
          Registers the metadata for this element.
 Organization setLabel(java.lang.String label)
          Sets the label.
 Organization setOrgDepartment(OrgDepartment orgDepartment)
          Sets the department name in organization.
 Organization setOrgJobDescription(OrgJobDescription orgJobDescription)
          Sets the job description.
 Organization setOrgName(OrgName orgName)
          Sets the name of organization.
 Organization setOrgSymbol(OrgSymbol orgSymbol)
          Sets the organization symbol/ticker.
 Organization setOrgTitle(OrgTitle orgTitle)
          Sets the position in organization.
 Organization setPrimary(java.lang.Boolean primary)
          Sets the whether this is the primary organization.
 Organization setRel(java.lang.String rel)
          Sets the organization type.
 Organization setWhere(Where where)
          Sets the office location.
 
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, 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,Organization> KEY
The key for this element.


LABEL

public static final AttributeKey<java.lang.String> LABEL
Label.


PRIMARY

public static final AttributeKey<java.lang.Boolean> PRIMARY
Whether this is the primary organization.


REL

public static final AttributeKey<java.lang.String> REL
Organization type.

Constructor Detail

Organization

public Organization()
Constructs an instance using the default key.


Organization

protected Organization(ElementKey<?,? extends Organization> key)
Subclass constructor, allows subclasses to supply their own element key.


Organization

protected Organization(ElementKey<?,? extends Organization> 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. This constructor is used when adapting from one element key to another. You cannot call this constructor directly, instead use Element.createElement(ElementKey, Element).

Parameters:
key - The key to use for this element.
source - source element
Method Detail

registerMetadata

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


lock

public Organization lock()
Description copied from class: Element
Locks this element. A locked element cannot have any changes made to its content or its attributes or child elements. This will also lock all attributes and child elements as well. Once this method has been called, this element can be safely published to other threads.

Overrides:
lock in class Element

getLabel

public java.lang.String getLabel()
Returns the label.

Returns:
label

setLabel

public Organization setLabel(java.lang.String label)
Sets the label.

Parameters:
label - label or null to reset
Returns:
this to enable chaining setters

hasLabel

public boolean hasLabel()
Returns whether it has the label.

Returns:
whether it has the label

getOrgDepartment

public OrgDepartment getOrgDepartment()
Returns the department name in organization.

Returns:
department name in organization

setOrgDepartment

public Organization setOrgDepartment(OrgDepartment orgDepartment)
Sets the department name in organization.

Parameters:
orgDepartment - department name in organization or null to reset
Returns:
this to enable chaining setters

hasOrgDepartment

public boolean hasOrgDepartment()
Returns whether it has the department name in organization.

Returns:
whether it has the department name in organization

getOrgJobDescription

public OrgJobDescription getOrgJobDescription()
Returns the job description.

Returns:
job description

setOrgJobDescription

public Organization setOrgJobDescription(OrgJobDescription orgJobDescription)
Sets the job description.

Parameters:
orgJobDescription - job description or null to reset
Returns:
this to enable chaining setters

hasOrgJobDescription

public boolean hasOrgJobDescription()
Returns whether it has the job description.

Returns:
whether it has the job description

getOrgName

public OrgName getOrgName()
Returns the name of organization.

Returns:
name of organization

setOrgName

public Organization setOrgName(OrgName orgName)
Sets the name of organization.

Parameters:
orgName - name of organization or null to reset
Returns:
this to enable chaining setters

hasOrgName

public boolean hasOrgName()
Returns whether it has the name of organization.

Returns:
whether it has the name of organization

getOrgSymbol

public OrgSymbol getOrgSymbol()
Returns the organization symbol/ticker.

Returns:
organization symbol/ticker

setOrgSymbol

public Organization setOrgSymbol(OrgSymbol orgSymbol)
Sets the organization symbol/ticker.

Parameters:
orgSymbol - organization symbol/ticker or null to reset
Returns:
this to enable chaining setters

hasOrgSymbol

public boolean hasOrgSymbol()
Returns whether it has the organization symbol/ticker.

Returns:
whether it has the organization symbol/ticker

getOrgTitle

public OrgTitle getOrgTitle()
Returns the position in organization.

Returns:
position in organization

setOrgTitle

public Organization setOrgTitle(OrgTitle orgTitle)
Sets the position in organization.

Parameters:
orgTitle - position in organization or null to reset
Returns:
this to enable chaining setters

hasOrgTitle

public boolean hasOrgTitle()
Returns whether it has the position in organization.

Returns:
whether it has the position in organization

getPrimary

public java.lang.Boolean getPrimary()
Returns the whether this is the primary organization.

Returns:
whether this is the primary organization

setPrimary

public Organization setPrimary(java.lang.Boolean primary)
Sets the whether this is the primary organization.

Parameters:
primary - whether this is the primary organization or null to reset
Returns:
this to enable chaining setters

hasPrimary

public boolean hasPrimary()
Returns whether it has the whether this is the primary organization.

Returns:
whether it has the whether this is the primary organization

getRel

public java.lang.String getRel()
Returns the organization type.

Returns:
organization type

setRel

public Organization setRel(java.lang.String rel)
Sets the organization type.

Parameters:
rel - organization type or null to reset
Returns:
this to enable chaining setters

hasRel

public boolean hasRel()
Returns whether it has the organization type.

Returns:
whether it has the organization type

getWhere

public Where getWhere()
Returns the office location.

Returns:
office location

setWhere

public Organization setWhere(Where where)
Sets the office location.

Parameters:
where - office location or null to reset
Returns:
this to enable chaining setters

hasWhere

public boolean hasWhere()
Returns whether it has the office location.

Returns:
whether it has the office location