Cytoscape 2.8.0 API

cytoscape.command
Interface CyCommandNamespace


public interface CyCommandNamespace

A CyCommandNamespace represents a reservation for a group of CyCommands. A namespace reservation must be secured before a client can register commands to be executed.


Method Summary
 String getNamespaceName()
          Return the string name that is held by this namespace.
 boolean supportsVersion(float version)
          Check to see if this namespace supports a particular version of the command handlers.
 

Method Detail

getNamespaceName

String getNamespaceName()
Return the string name that is held by this namespace.

Returns:
the name reserved by this namespace.

supportsVersion

boolean supportsVersion(float version)
Check to see if this namespace supports a particular version of the command handlers. The version is a floating-point value of the form major.minor where minor is assumed to be two digits. So, a version of 1.1 should be thought of as 1.10, while version 1.01 is the first minor version of major version 1.

Parameters:
version - the version to check for support
Returns:
true if this namespace supports the requested version

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.