public class

Organization

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.extensions.Organization

Class Overview

Describes an organization (like Company).

Summary

Nested Classes
class Organization.Rel Organization type. 
Constants
String LABEL XML "label" attribute name
String PRIMARY XML "primary" attribute name
String REL XML "rel" attribute name
String XML_NAME XML element name
Fields
private String label Label
private Boolean primary Whether this is the primary organization
private String rel Organization type
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
Organization()
Default mutable constructor.
Organization(String label, Boolean primary, String rel)
Immutable constructor.
Public Methods
void declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within the target extension profile.
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
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.
void setLabel(String label)
Sets the label.
void setOrgDepartment(OrgDepartment orgDepartment)
Sets the department name in organization.
void setOrgJobDescription(OrgJobDescription orgJobDescription)
Sets the job description.
void setOrgName(OrgName orgName)
Sets the name of organization.
void setOrgSymbol(OrgSymbol orgSymbol)
Sets the organization symbol/ticker.
void setOrgTitle(OrgTitle orgTitle)
Sets the position in organization.
void setPrimary(Boolean primary)
Sets the whether this is the primary organization.
void setRel(String rel)
Sets the organization type.
void setWhere(Where where)
Sets the office location.
String toString()
Protected Methods
void consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
void putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
void validate()
Checks the attributes to see if there are any problems.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

private static final String LABEL

XML "label" attribute name

Constant Value: "label"

private static final String PRIMARY

XML "primary" attribute name

Constant Value: "primary"

private static final String REL

XML "rel" attribute name

Constant Value: "rel"

static final String XML_NAME

XML element name

Constant Value: "organization"

Fields

private String label

Label

private Boolean primary

Whether this is the primary organization

private String rel

Organization type

Public Constructors

public Organization ()

Default mutable constructor.

public Organization (String label, Boolean primary, String rel)

Immutable constructor.

Parameters
label Label.
primary Whether this is the primary organization.
rel Organization type.

Public Methods

public void declareExtensions (ExtensionProfile extProfile)

Declares the set of expected Extension types for an ExtensionPoint within the target extension profile. The base implementation does not declare any extensions, but can be overridden by specific types of ExtensionPoints that always contain a well-defined set of extensions.

Parameters
extProfile The ExtensionProfile to initialize.

public static ExtensionDescription getDefaultDescription (boolean required, boolean repeatable)

Returns the extension description, specifying whether it is required, and whether it is repeatable.

Parameters
required Whether it is required
repeatable Whether it is repeatable
Returns
  • extension description

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 void setLabel (String label)

Sets the label.

Parameters
label Label or null to reset

public void setOrgDepartment (OrgDepartment orgDepartment)

Sets the department name in organization.

Parameters
orgDepartment Department name in organization or null to reset

public void setOrgJobDescription (OrgJobDescription orgJobDescription)

Sets the job description.

Parameters
orgJobDescription Job description or null to reset

public void setOrgName (OrgName orgName)

Sets the name of organization.

Parameters
orgName Name of organization or null to reset

public void setOrgSymbol (OrgSymbol orgSymbol)

Sets the organization symbol/ticker.

Parameters
orgSymbol Organization symbol/ticker or null to reset

public void setOrgTitle (OrgTitle orgTitle)

Sets the position in organization.

Parameters
orgTitle Position in organization or null to reset

public void setPrimary (Boolean primary)

Sets the whether this is the primary organization.

Parameters
primary Whether this is the primary organization or null to reset

public void setRel (String rel)

Sets the organization type.

Parameters
rel Organization type or null to reset

public void setWhere (Where where)

Sets the office location.

Parameters
where Office location or null to reset

public String toString ()

Protected Methods

protected void consumeAttributes (AttributeHelper helper)

Consumes attributes from the attribute helper. May also use consumeContent(boolean) to consume the element's text content. Called from getHandler(ExtensionProfile, String, String, Attributes). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
helper Attribute helper

protected void putAttributes (AttributeGenerator generator)

Puts attributes into the attribute generator. Called from generate(XmlWriter, ExtensionProfile). Default implementation does nothing, though generally this is discouraged unless there really are no attributes.

Parameters
generator Attribute generator

protected void validate ()

Checks the attributes to see if there are any problems. Default implementation does nothing, though generally this is discouraged unless there really are no restrictions.