Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.data
Class CyAttributesImpl

java.lang.Object
  extended by cytoscape.data.CyAttributesImpl
All Implemented Interfaces:
CyAttributes

public class CyAttributesImpl
extends Object
implements CyAttributes


Field Summary
 
Fields inherited from interface cytoscape.data.CyAttributes
TYPE_BOOLEAN, TYPE_COMPLEX, TYPE_FLOATING, TYPE_INTEGER, TYPE_SIMPLE_LIST, TYPE_SIMPLE_MAP, TYPE_STRING, TYPE_UNDEFINED
 
Constructor Summary
CyAttributesImpl()
          Creates a new CyAttributesImpl object.
 
Method Summary
 boolean deleteAttribute(String attributeName)
          DOCUMENT ME!
 boolean deleteAttribute(String id, String attributeName)
          DOCUMENT ME!
 Object getAttribute(String id, String attributeName)
          Gets an Object value at the specified id/attributeName.
 String getAttributeDescription(String attributeName)
          DOCUMENT ME!
 List getAttributeList(String id, String attributeName)
          DOCUMENT ME!
 Map getAttributeMap(String id, String attributeName)
          DOCUMENT ME!
 String[] getAttributeNames()
          DOCUMENT ME!
 Boolean getBooleanAttribute(String id, String attributeName)
          DOCUMENT ME!
 Double getDoubleAttribute(String id, String attributeName)
          DOCUMENT ME!
 Integer getIntegerAttribute(String id, String attributeName)
          DOCUMENT ME!
 List getListAttribute(String id, String attributeName)
          DOCUMENT ME!
 Map getMapAttribute(String id, String attributeName)
          DOCUMENT ME!
 MultiHashMap getMultiHashMap()
          DOCUMENT ME!
 MultiHashMapDefinition getMultiHashMapDefinition()
          DOCUMENT ME!
 String getStringAttribute(String id, String attributeName)
          DOCUMENT ME!
 byte getType(String attributeName)
          DOCUMENT ME!
 boolean getUserEditable(String attributeName)
          DOCUMENT ME!
 boolean getUserVisible(String attributeName)
          DOCUMENT ME!
 boolean hasAttribute(String id, String attributeName)
          DOCUMENT ME!
 void setAttribute(String id, String attributeName, Boolean value)
          DOCUMENT ME!
 void setAttribute(String id, String attributeName, Double value)
          DOCUMENT ME!
 void setAttribute(String id, String attributeName, Integer value)
          DOCUMENT ME!
 void setAttribute(String id, String attributeName, String value)
          DOCUMENT ME!
 void setAttributeDescription(String attributeName, String description)
          DOCUMENT ME!
 void setAttributeList(String id, String attributeName, List list)
          DOCUMENT ME!
 void setAttributeMap(String id, String attributeName, Map map)
          DOCUMENT ME!
 void setListAttribute(String id, String attributeName, List list)
          DOCUMENT ME!
 void setMapAttribute(String id, String attributeName, Map map)
          DOCUMENT ME!
 void setUserEditable(String attributeName, boolean value)
          DOCUMENT ME!
 void setUserVisible(String attributeName, boolean value)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CyAttributesImpl

public CyAttributesImpl()
Creates a new CyAttributesImpl object.

Method Detail

setAttributeDescription

public void setAttributeDescription(String attributeName,
                                    String description)
DOCUMENT ME!

Specified by:
setAttributeDescription in interface CyAttributes
Parameters:
attributeName - DOCUMENT ME!
description - DOCUMENT ME!

getAttributeDescription

public String getAttributeDescription(String attributeName)
DOCUMENT ME!

Specified by:
getAttributeDescription in interface CyAttributes
Parameters:
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

setUserVisible

public void setUserVisible(String attributeName,
                           boolean value)
DOCUMENT ME!

Specified by:
setUserVisible in interface CyAttributes
Parameters:
attributeName - DOCUMENT ME!
value - DOCUMENT ME!

getUserVisible

public boolean getUserVisible(String attributeName)
DOCUMENT ME!

Specified by:
getUserVisible in interface CyAttributes
Parameters:
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

setUserEditable

public void setUserEditable(String attributeName,
                            boolean value)
DOCUMENT ME!

Specified by:
setUserEditable in interface CyAttributes
Parameters:
attributeName - DOCUMENT ME!
value - DOCUMENT ME!

getUserEditable

public boolean getUserEditable(String attributeName)
DOCUMENT ME!

Specified by:
getUserEditable in interface CyAttributes
Parameters:
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getAttributeNames

public String[] getAttributeNames()
DOCUMENT ME!

Specified by:
getAttributeNames in interface CyAttributes
Returns:
DOCUMENT ME!

hasAttribute

public boolean hasAttribute(String id,
                            String attributeName)
DOCUMENT ME!

Specified by:
hasAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

setAttribute

public void setAttribute(String id,
                         String attributeName,
                         Boolean value)
DOCUMENT ME!

Specified by:
setAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
value - DOCUMENT ME!

setAttribute

public void setAttribute(String id,
                         String attributeName,
                         Integer value)
DOCUMENT ME!

Specified by:
setAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
value - DOCUMENT ME!

setAttribute

public void setAttribute(String id,
                         String attributeName,
                         Double value)
DOCUMENT ME!

Specified by:
setAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
value - DOCUMENT ME!

setAttribute

public void setAttribute(String id,
                         String attributeName,
                         String value)
DOCUMENT ME!

Specified by:
setAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
value - DOCUMENT ME!

getBooleanAttribute

public Boolean getBooleanAttribute(String id,
                                   String attributeName)
DOCUMENT ME!

Specified by:
getBooleanAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getIntegerAttribute

public Integer getIntegerAttribute(String id,
                                   String attributeName)
DOCUMENT ME!

Specified by:
getIntegerAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getDoubleAttribute

public Double getDoubleAttribute(String id,
                                 String attributeName)
DOCUMENT ME!

Specified by:
getDoubleAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getStringAttribute

public String getStringAttribute(String id,
                                 String attributeName)
DOCUMENT ME!

Specified by:
getStringAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getAttribute

public Object getAttribute(String id,
                           String attributeName)
Gets an Object value at the specified id/attributeName. This is a convenience method for those situations when attribute type isn't relevant. You should NOT use this method and cast the result to the type of attribute. Instead, just call the appropriate get*Attribute method.

Specified by:
getAttribute in interface CyAttributes
Parameters:
id - unique identifier.
attributeName - attribute name.
Returns:
Object, or null if no id/attributeName pair is found.

getType

public byte getType(String attributeName)
DOCUMENT ME!

Specified by:
getType in interface CyAttributes
Parameters:
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

deleteAttribute

public boolean deleteAttribute(String id,
                               String attributeName)
DOCUMENT ME!

Specified by:
deleteAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

deleteAttribute

public boolean deleteAttribute(String attributeName)
DOCUMENT ME!

Specified by:
deleteAttribute in interface CyAttributes
Parameters:
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

setAttributeList

public void setAttributeList(String id,
                             String attributeName,
                             List list)
DOCUMENT ME!

Specified by:
setAttributeList in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
list - DOCUMENT ME!

setListAttribute

public void setListAttribute(String id,
                             String attributeName,
                             List list)
DOCUMENT ME!

Specified by:
setListAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
list - DOCUMENT ME!

getAttributeList

public List getAttributeList(String id,
                             String attributeName)
DOCUMENT ME!

Specified by:
getAttributeList in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getListAttribute

public List getListAttribute(String id,
                             String attributeName)
DOCUMENT ME!

Specified by:
getListAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

setAttributeMap

public void setAttributeMap(String id,
                            String attributeName,
                            Map map)
DOCUMENT ME!

Specified by:
setAttributeMap in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
map - DOCUMENT ME!

setMapAttribute

public void setMapAttribute(String id,
                            String attributeName,
                            Map map)
DOCUMENT ME!

Specified by:
setMapAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
map - DOCUMENT ME!

getAttributeMap

public Map getAttributeMap(String id,
                           String attributeName)
DOCUMENT ME!

Specified by:
getAttributeMap in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getMapAttribute

public Map getMapAttribute(String id,
                           String attributeName)
DOCUMENT ME!

Specified by:
getMapAttribute in interface CyAttributes
Parameters:
id - DOCUMENT ME!
attributeName - DOCUMENT ME!
Returns:
DOCUMENT ME!

getMultiHashMap

public MultiHashMap getMultiHashMap()
DOCUMENT ME!

Specified by:
getMultiHashMap in interface CyAttributes
Returns:
DOCUMENT ME!

getMultiHashMapDefinition

public MultiHashMapDefinition getMultiHashMapDefinition()
DOCUMENT ME!

Specified by:
getMultiHashMapDefinition in interface CyAttributes
Returns:
DOCUMENT ME!

www.cytoscape.org