public class

OrgName

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

Class Overview

Name of organization.

Summary

Constants
String XML_NAME XML element name
String YOMI XML "yomi" attribute name
Fields
private String value Value
private String yomi Yomi name of organization
[Expand]
Inherited Fields
From class com.google.gdata.data.AbstractExtension
Public Constructors
OrgName()
Default mutable constructor.
OrgName(String value, String yomi)
Immutable constructor.
OrgName(String value)
Immutable constructor for backward compatibility.
Public Methods
boolean equals(Object obj)
static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
Returns the extension description, specifying whether it is required, and whether it is repeatable.
String getValue()
Returns the value.
String getYomi()
Returns the yomi name of organization.
boolean hasValue()
Returns whether it has the value.
boolean hasYomi()
Returns whether it has the yomi name of organization.
int hashCode()
void setValue(String value)
Sets the value.
void setYomi(String yomi)
Sets the yomi name of organization.
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.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

static final String XML_NAME

XML element name

Constant Value: "orgName"

private static final String YOMI

XML "yomi" attribute name

Constant Value: "yomi"

Fields

private String value

Value

private String yomi

Yomi name of organization

Public Constructors

public OrgName ()

Default mutable constructor.

public OrgName (String value, String yomi)

Immutable constructor.

Parameters
value Value.
yomi Yomi name of organization.

public OrgName (String value)

Immutable constructor for backward compatibility.

Parameters
value Value.

Public Methods

public boolean equals (Object obj)

Parameters
obj

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 getValue ()

Returns the value.

Returns
  • value

public String getYomi ()

Returns the yomi name of organization.

Returns
  • yomi name of organization

public boolean hasValue ()

Returns whether it has the value.

Returns
  • whether it has the value

public boolean hasYomi ()

Returns whether it has the yomi name of organization.

Returns
  • whether it has the yomi name of organization

public int hashCode ()

public void setValue (String value)

Sets the value.

Parameters
value Value or null to reset

public void setYomi (String yomi)

Sets the yomi name of organization.

Parameters
yomi Yomi name of organization 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.