org.mgif.connectivity.transfer
Interface Attributes

All Known Subinterfaces:
BinaryMessage, Datagram, Message, MMMessage, Request, Response, ServiceIndicationMessage, TextMessage

public interface Attributes

Interface for attribute classes

See Also:
MGIF

Method Summary
 java.lang.Object getAttribute(java.lang.String key)
          Get an attribute
 java.util.Enumeration getAttributeNames()
          Get names of all attributes
 java.util.Map getAttributes()
          Get all attributes as a map
 boolean isAttribute(java.lang.String key)
          Test whether attribute is defined
 java.lang.Object removeAttribute(java.lang.String key)
          Remove an attribute
 java.lang.Object setAttribute(java.lang.String key, java.lang.Object val)
          Set an attribute
 

Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String key)
Get an attribute
Parameters:
key - name of attribute
Returns:
attribute or null

getAttributeNames

public java.util.Enumeration getAttributeNames()
Get names of all attributes
Returns:
enumeration of attribute names

getAttributes

public java.util.Map getAttributes()
Get all attributes as a map
Returns:
map of attributes

isAttribute

public boolean isAttribute(java.lang.String key)
Test whether attribute is defined
Parameters:
key - name of attribute
Returns:
true if attribute is defined

removeAttribute

public java.lang.Object removeAttribute(java.lang.String key)
Remove an attribute
Parameters:
key - name of attribute
Returns:
removed attribute or null

setAttribute

public java.lang.Object setAttribute(java.lang.String key,
                                     java.lang.Object val)
Set an attribute
Parameters:
key - name of attribute
val - value of attribute
Returns:
previous value of attribute or null


Copyright © 2002 Mobile Games Interoperability Forum. All rights reserved.
This source code is protected by the legal notice posted at http://www.mgif.org/docs/notice.html