Java EE 5 SDK

com.sun.appserv.management.base
Interface MapCapable

All Known Subinterfaces:
DeploymentProgress, DeploymentSource, DeploymentStatus, MessageTrace, OperationStatus, WebServiceEndpointInfo
All Known Implementing Classes:
DeploymentProgressImpl, DeploymentSourceImpl, DeploymentStatusImpl, MapCapableBase, MessageTraceImpl, OperationStatusBase, WebServiceEndpointInfoImpl

public interface MapCapable

Interface which states that the object can be converted into a Map. Type parameter must be Object or Serializable.


Field Summary
static String MAP_CAPABLE_CLASS_NAME_KEY
          The key for the type of Object this Map represents; all MapCapable objects will place their classname keyed by this key as a String into the Map returned from asMap().
 
Method Summary
 Map<String,Serializable> asMap()
          To be capable of being serialized and deserialized by generic clients, the following rules must be observed for the resulting Map.
 String getMapClassName()
          Return the interface that this Map represents (the Java classname).
 

Field Detail

MAP_CAPABLE_CLASS_NAME_KEY

static final String MAP_CAPABLE_CLASS_NAME_KEY
The key for the type of Object this Map represents; all MapCapable objects will place their classname keyed by this key as a String into the Map returned from asMap().

See Also:
Constant Field Values
Method Detail

asMap

Map<String,Serializable> asMap()
To be capable of being serialized and deserialized by generic clients, the following rules must be observed for the resulting Map.

The Map itself and any items it references, directly or indirectly must be of a class of one of the following:

Returns:
an equivalent Map representing the original object.

getMapClassName

String getMapClassName()
Return the interface that this Map represents (the Java classname).


Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.