public class

Organization

extends Element
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.gd.Organization

Class Overview

Describes an organization (like Company).

Summary

Nested Classes
class Organization.Rel Organization type. 
Fields
public static final ElementKey<Void, Organization> KEY The key for this element.
public static final AttributeKey<String> LABEL Label.
public static final AttributeKey<Boolean> PRIMARY Whether this is the primary organization.
public static final AttributeKey<String> REL Organization type.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
Organization()
Constructs an instance using the default key.
Protected Constructors
Organization(ElementKey<?, ? extends Organization> key)
Subclass constructor, allows subclasses to supply their own element key.
Organization(ElementKey<?, ? extends Organization> key, Element source)
Constructs a new instance by doing a shallow copy of data from an existing Element instance.
Public Methods
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.
Boolean getPrimary()
Returns the whether this is the primary organization.
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(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(Boolean primary)
Sets the whether this is the primary organization.
Organization setRel(String rel)
Sets the organization type.
Organization setWhere(Where where)
Sets the office location.
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object

Fields

public static final ElementKey<Void, Organization> KEY

The key for this element.

public static final AttributeKey<String> LABEL

Label.

public static final AttributeKey<Boolean> PRIMARY

Whether this is the primary organization.

public static final AttributeKey<String> REL

Organization type.

Public Constructors

public Organization ()

Constructs an instance using the default key.

Protected Constructors

protected Organization (ElementKey<?, ? extends Organization> key)

Subclass constructor, allows subclasses to supply their own element key.

Parameters
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. 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 createElement(ElementKey, Element).

Parameters
key The key to use for this element.
source Source element

Public Methods

public String getLabel ()

Returns the label.

Returns
  • label

public OrgDepartment getOrgDepartment ()

Returns the department name in organization.

Returns
  • department name in organization

public OrgJobDescription getOrgJobDescription ()

Returns the job description.

Returns
  • job description

public OrgName getOrgName ()

Returns the name of organization.

Returns
  • name of organization

public OrgSymbol getOrgSymbol ()

Returns the organization symbol/ticker.

Returns
  • organization symbol/ticker

public OrgTitle getOrgTitle ()

Returns the position in organization.

Returns
  • position in organization

public Boolean getPrimary ()

Returns the whether this is the primary organization.

Returns
  • whether this is the primary organization

public String getRel ()

Returns the organization type.

Returns
  • organization type

public Where getWhere ()

Returns the office location.

Returns
  • office location

public boolean hasLabel ()

Returns whether it has the label.

Returns
  • whether it has the label

public boolean hasOrgDepartment ()

Returns whether it has the department name in organization.

Returns
  • whether it has the department name in organization

public boolean hasOrgJobDescription ()

Returns whether it has the job description.

Returns
  • whether it has the job description

public boolean hasOrgName ()

Returns whether it has the name of organization.

Returns
  • whether it has the name of organization

public boolean hasOrgSymbol ()

Returns whether it has the organization symbol/ticker.

Returns
  • whether it has the organization symbol/ticker

public boolean hasOrgTitle ()

Returns whether it has the position in organization.

Returns
  • whether it has the position in organization

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

public boolean hasRel ()

Returns whether it has the organization type.

Returns
  • whether it has the organization type

public boolean hasWhere ()

Returns whether it has the office location.

Returns
  • whether it has the office location

public Organization lock ()

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.

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public Organization setLabel (String label)

Sets the label.

Parameters
label Label or null to reset
Returns
  • this to enable chaining setters

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

public Organization setOrgJobDescription (OrgJobDescription orgJobDescription)

Sets the job description.

Parameters
orgJobDescription Job description or null to reset
Returns
  • this to enable chaining setters

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

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

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

public Organization setPrimary (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

public Organization setRel (String rel)

Sets the organization type.

Parameters
rel Organization type or null to reset
Returns
  • this to enable chaining setters

public Organization setWhere (Where where)

Sets the office location.

Parameters
where Office location or null to reset
Returns
  • this to enable chaining setters