public class JivePropertiesExtension extends java.lang.Object implements PacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE
Namespace used to store packet properties.
|
Constructor and Description |
---|
JivePropertiesExtension() |
JivePropertiesExtension(java.util.Map<java.lang.String,java.lang.Object> properties) |
Modifier and Type | Method and Description |
---|---|
void |
deleteProperty(java.lang.String name)
Deletes a property.
|
java.lang.String |
getElementName()
Returns the root element name.
|
java.lang.String |
getNamespace()
Returns the root element XML namespace.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Returns an unmodifiable map of all properties.
|
java.lang.Object |
getProperty(java.lang.String name)
Returns the packet property with the specified name or null if the
property doesn't exist.
|
java.util.Collection<java.lang.String> |
getPropertyNames()
Returns an unmodifiable collection of all the property names that are set.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a property with an Object as the value.
|
java.lang.CharSequence |
toXML()
Returns the XML representation of the PacketExtension.
|
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT
public JivePropertiesExtension()
public JivePropertiesExtension(java.util.Map<java.lang.String,java.lang.Object> properties)
public java.lang.Object getProperty(java.lang.String name)
name
- the name of the property.public void setProperty(java.lang.String name, java.lang.Object value)
name
- the name of the property.value
- the value of the property.public void deleteProperty(java.lang.String name)
name
- the name of the property to delete.public java.util.Collection<java.lang.String> getPropertyNames()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public java.lang.String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public java.lang.CharSequence toXML()
PacketExtension
toXML
in interface PacketExtension