|
|||||||||
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.Im
public class Im
Describes an instant messaging address.
Nested Class Summary | |
---|---|
static class |
Im.Protocol
Im protocol. |
static class |
Im.Rel
Im type. |
Field Summary | |
---|---|
static AttributeKey<java.lang.String> |
ADDRESS
IM address. |
static ElementKey<java.lang.Void,Im> |
KEY
The key for this element. |
static AttributeKey<java.lang.String> |
LABEL
Label. |
static AttributeKey<java.lang.Boolean> |
PRIMARY
Whether this is the primary instant messaging address. |
static AttributeKey<java.lang.String> |
PROTOCOL
Im protocol. |
static AttributeKey<java.lang.String> |
REL
Im type. |
Constructor Summary | |
---|---|
Im()
Constructs an instance using the default key. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAddress()
Returns the IM address. |
java.lang.String |
getLabel()
Returns the label. |
java.lang.Boolean |
getPrimary()
Returns the whether this is the primary instant messaging address. |
java.lang.String |
getProtocol()
Returns the im protocol. |
java.lang.String |
getRel()
Returns the im type. |
boolean |
hasAddress()
Returns whether it has the IM address. |
int |
hashCode()
|
boolean |
hasLabel()
Returns whether it has the label. |
boolean |
hasPrimary()
Returns whether it has the whether this is the primary instant messaging address. |
boolean |
hasProtocol()
Returns whether it has the im protocol. |
boolean |
hasRel()
Returns whether it has the im type. |
Im |
lock()
Locks this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
Im |
setAddress(java.lang.String address)
Sets the IM address. |
Im |
setLabel(java.lang.String label)
Sets the label. |
Im |
setPrimary(java.lang.Boolean primary)
Sets the whether this is the primary instant messaging address. |
Im |
setProtocol(java.lang.String protocol)
Sets the im protocol. |
Im |
setRel(java.lang.String rel)
Sets the im type. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.Void,Im> KEY
public static final AttributeKey<java.lang.String> ADDRESS
public static final AttributeKey<java.lang.String> LABEL
public static final AttributeKey<java.lang.Boolean> PRIMARY
public static final AttributeKey<java.lang.String> PROTOCOL
public static final AttributeKey<java.lang.String> REL
Constructor Detail |
---|
public Im()
Method Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public Im lock()
Element
lock
in class Element
public java.lang.String getAddress()
public Im setAddress(java.lang.String address)
address
- IM address or null
to reset
public boolean hasAddress()
public java.lang.String getLabel()
public Im setLabel(java.lang.String label)
label
- label or null
to reset
public boolean hasLabel()
public java.lang.Boolean getPrimary()
public Im setPrimary(java.lang.Boolean primary)
primary
- whether this is the primary instant messaging address or
null
to reset
public boolean hasPrimary()
public java.lang.String getProtocol()
public Im setProtocol(java.lang.String protocol)
protocol
- im protocol or null
to reset
public boolean hasProtocol()
public java.lang.String getRel()
public Im setRel(java.lang.String rel)
rel
- im type or null
to reset
public boolean hasRel()
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 |