public class Organization extends ExtensionPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
Organization.Rel
Organization type.
|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerxmlBloblocalName, namespace| Constructor and Description |
|---|
Organization()
Default mutable constructor.
|
Organization(java.lang.String label,
java.lang.Boolean primary,
java.lang.String rel)
Immutable constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getHandler, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildrendisableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutablepublic 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.public void declareExtensions(ExtensionProfile extProfile)
ExtensionPointdeclareExtensions 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()
AbstractExtensionvalidate in class AbstractExtensionpublic static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required - whether it is requiredrepeatable - whether it is repeatableprotected 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 generatorprotected 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 helperParseException - any parsing exceptionpublic java.lang.String toString()
toString in class java.lang.Object