public class Im extends Element
Modifier and Type | Class and Description |
---|---|
static class |
Im.Protocol
Im protocol.
|
static class |
Im.Rel
Im type.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
Im()
Constructs an instance using the default key.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addElement, addElement, addElement, clear, createElement, createElement, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hasTextValue, isLocked, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, visit
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
public static void registerMetadata(MetadataRegistry registry)
public Im lock()
Element
public java.lang.String getAddress()
public Im setAddress(java.lang.String address)
address
- IM address or null
to resetpublic boolean hasAddress()
public java.lang.String getLabel()
public Im setLabel(java.lang.String label)
label
- label or null
to resetpublic 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 resetpublic boolean hasPrimary()
public java.lang.String getProtocol()
public Im setProtocol(java.lang.String protocol)
protocol
- im protocol or null
to resetpublic boolean hasProtocol()
public java.lang.String getRel()
public Im setRel(java.lang.String rel)
rel
- im type or null
to resetpublic boolean hasRel()