FileDocCategorySizeDatePackage
Capabilities.javaAPI DocGlassfish v2 API2951Fri May 04 22:23:50 BST 2007com.sun.enterprise.management

Capabilities

public final class Capabilities extends Object

Fields Summary
private final HashMap
mItems
public static final String
OFFLINE_KEY
Constructors Summary
public Capabilities()

    
	    
	
	
	    mItems  = new HashMap<String,Object>();
	
public Capabilities(Object[] pairs)

	    this();
	    for( int i = 0; i < pairs.length; i +=2  )
	    {
	        add( (String)pairs[ i ], pairs[ i + 1] );
	    }
	
Methods Summary
public voidadd(java.lang.String key, java.lang.Object value)

	    assert( ! mItems.containsKey( key ) );
	    mItems.put( key, value );
	
public java.util.MapgetAll()

	    return Collections.unmodifiableMap( mItems );
	
public booleangetOfflineCapable()

	    return "true".equals( "" + mItems.get( OFFLINE_KEY ) );
	
public voidsetOfflineCapable(boolean value)

	    add( OFFLINE_KEY, "" + value );