Class Overview
Can be city, village, town, borough, etc.
Summary
| Constants |
| String |
XML_NAME |
XML element name |
| Public Constructors |
|
|
City()
Default mutable constructor.
|
|
|
City(String value)
Constructor (mutable or immutable).
|
|
[Expand]
Inherited Methods |
From class
com.google.gdata.data.ValueConstruct
|
From class
com.google.gdata.data.AbstractExtension
|
void
|
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
|
final
static
void
|
disableStrictValidation()
|
|
final
static
void
|
enableStrictValidation()
|
|
static
boolean
|
eq(Object o1, Object o2)
|
|
void
|
generate(XmlWriter w, ExtensionProfile p)
Generates an XML representation for the extension.
|
|
void
|
generate(XmlWriter w, ExtensionProfile p, XmlNamespace namespace, String localName, List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the XML into the XML writer.
|
|
void
|
generateAttributes(List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the attributes in the generator into the list of attributes.
|
|
final
String
|
getExtensionLocalName()
Gets the extension's localname.
|
|
final
XmlNamespace
|
getExtensionNamespace()
Gets the extension's namespace.
|
|
XmlParser.ElementHandler
|
getHandler(ExtensionProfile p, String namespace, String localName, Attributes attrs)
|
|
final
boolean
|
isImmutable()
|
|
final
static
boolean
|
isStrictValidation()
|
|
void
|
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
|
boolean
|
sameClassAs(Object o)
|
|
final
void
|
setImmutable(boolean isImmutable)
|
|
final
static
void
|
throwExceptionForMissingAttribute(String attrName)
Throws an IllegalStateException if the value is required
and it is missing.
|
|
final
void
|
throwExceptionIfImmutable()
Throws an IllegalStateException if this instance is immutable.
|
|
void
|
validate()
Checks the attributes to see if there are any problems.
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.gdata.data.Extension
|
Constants
static
final
String
XML_NAME
Public Constructors
public
City
()
Default mutable constructor.
public
City
(String value)
Constructor (mutable or immutable).
Parameters
| value
| Immutable value or null for a mutable value
|
Public Methods
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 |
public
String
toString
()