|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.gd.PhoneNumber
public class PhoneNumber
Describes a phone number.
Nested Class Summary | |
---|---|
static class |
PhoneNumber.Rel
Programmatic value that identifies the type of phone number. |
Field Summary | |
---|---|
static ElementKey<java.lang.String,PhoneNumber> |
KEY
The key for this element. |
static AttributeKey<java.lang.String> |
LABEL
Simple string value used to name this phone number. |
static AttributeKey<java.lang.Boolean> |
PRIMARY
Whether this is the primary phone number. |
static AttributeKey<java.lang.String> |
REL
Programmatic value that identifies the type of phone number. |
Constructor Summary | |
---|---|
PhoneNumber()
Constructs an instance using the default key. |
|
PhoneNumber(java.lang.String value)
Constructs a new instance with the given value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getLabel()
Returns the simple string value used to name this phone number. |
java.lang.Boolean |
getPrimary()
Returns the whether this is the primary phone number. |
java.lang.String |
getRel()
Returns the programmatic value that identifies the type of phone number. |
java.lang.String |
getValue()
Returns the human-readable phone number. |
int |
hashCode()
|
boolean |
hasLabel()
Returns whether it has the simple string value used to name this phone number. |
boolean |
hasPrimary()
Returns whether it has the whether this is the primary phone number. |
boolean |
hasRel()
Returns whether it has the programmatic value that identifies the type of phone number. |
boolean |
hasValue()
Returns whether it has the human-readable phone number. |
PhoneNumber |
lock()
Locks this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
PhoneNumber |
setLabel(java.lang.String label)
Sets the simple string value used to name this phone number. |
PhoneNumber |
setPrimary(java.lang.Boolean primary)
Sets the whether this is the primary phone number. |
PhoneNumber |
setRel(java.lang.String rel)
Sets the programmatic value that identifies the type of phone number. |
PhoneNumber |
setValue(java.lang.String value)
Sets the human-readable phone number. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.String,PhoneNumber> KEY
public static final AttributeKey<java.lang.String> LABEL
public static final AttributeKey<java.lang.Boolean> PRIMARY
public static final AttributeKey<java.lang.String> REL
Constructor Detail |
---|
public PhoneNumber()
public PhoneNumber(java.lang.String value)
value
- human-readable phone number.Method Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public PhoneNumber lock()
Element
lock
in class Element
public java.lang.String getLabel()
public PhoneNumber setLabel(java.lang.String label)
label
- simple string value used to name this phone number or null
to reset
public boolean hasLabel()
public java.lang.Boolean getPrimary()
public PhoneNumber setPrimary(java.lang.Boolean primary)
primary
- whether this is the primary phone number or null
to
reset
public boolean hasPrimary()
public java.lang.String getRel()
public PhoneNumber setRel(java.lang.String rel)
rel
- programmatic value that identifies the type of phone number or
null
to reset
public boolean hasRel()
public java.lang.String getValue()
public PhoneNumber setValue(java.lang.String value)
value
- human-readable phone number or null
to reset
public boolean hasValue()
public boolean equals(java.lang.Object obj)
equals
in class Element
public int hashCode()
hashCode
in class Element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |