|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.extensions.Organization
public class Organization
Describes an organization (like Company).
| Nested Class Summary | |
|---|---|
static class |
Organization.Rel
Organization type. |
| Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
|---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
| Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
|---|
AbstractExtension.AttributesHandler |
| Field Summary |
|---|
| Fields inherited from class com.google.gdata.data.ExtensionPoint |
|---|
xmlBlob |
| Fields inherited from class com.google.gdata.data.AbstractExtension |
|---|
localName, namespace |
| Constructor Summary | |
|---|---|
Organization()
Default mutable constructor. |
|
Organization(java.lang.String label,
java.lang.Boolean primary,
java.lang.String rel)
Immutable constructor. |
|
| Method Summary | |
|---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper. |
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. |
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. |
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator. |
void |
setLabel(java.lang.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(java.lang.Boolean primary)
Sets the whether this is the primary organization. |
void |
setRel(java.lang.String rel)
Sets the organization type. |
void |
setWhere(Where where)
Sets the office location. |
java.lang.String |
toString()
|
protected void |
validate()
Checks the attributes to see if there are any problems. |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
|---|
eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Organization()
public Organization(java.lang.String label,
java.lang.Boolean primary,
java.lang.String rel)
label - label.primary - whether this is the primary organization.rel - organization type.| Method Detail |
|---|
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions in class ExtensionPointextProfile - the ExtensionProfile to initialize.public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - label or null to resetpublic boolean hasLabel()
public OrgDepartment getOrgDepartment()
public void setOrgDepartment(OrgDepartment orgDepartment)
orgDepartment - department name in organization or null
to resetpublic boolean hasOrgDepartment()
public OrgJobDescription getOrgJobDescription()
public void setOrgJobDescription(OrgJobDescription orgJobDescription)
orgJobDescription - job description or null to resetpublic boolean hasOrgJobDescription()
public OrgName getOrgName()
public void setOrgName(OrgName orgName)
orgName - name of organization or null to resetpublic boolean hasOrgName()
public OrgSymbol getOrgSymbol()
public void setOrgSymbol(OrgSymbol orgSymbol)
orgSymbol - organization symbol/ticker or null to resetpublic boolean hasOrgSymbol()
public OrgTitle getOrgTitle()
public void setOrgTitle(OrgTitle orgTitle)
orgTitle - position in organization or null to resetpublic boolean hasOrgTitle()
public java.lang.Boolean getPrimary()
public void setPrimary(java.lang.Boolean primary)
primary - whether this is the primary organization or
null to resetpublic boolean hasPrimary()
public java.lang.String getRel()
public void setRel(java.lang.String rel)
rel - organization type or null to resetpublic boolean hasRel()
public Where getWhere()
public void setWhere(Where where)
where - office location or null to resetpublic boolean hasWhere()
protected void validate()
AbstractExtension
validate in class AbstractExtension
public static ExtensionDescription getDefaultDescription(boolean required,
boolean repeatable)
required - whether it is requiredrepeatable - whether it is repeatable
protected void putAttributes(AttributeGenerator generator)
AbstractExtensionAbstractExtension.generate(XmlWriter,ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.
putAttributes in class AbstractExtensiongenerator - attribute generator
protected void consumeAttributes(AttributeHelper helper)
throws ParseException
AbstractExtensionAttributeHelper.consumeContent(boolean) to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.
consumeAttributes in class AbstractExtensionhelper - attribute helper
ParseException - any parsing exceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||