|
Cytoscape 2.8.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcytoscape.data.CyAttributesImpl
public class CyAttributesImpl
| Field Summary | |
|---|---|
protected static CyLogger |
logger
|
| 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)
|
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! |
Equation |
getEquation(String id,
String attributeName)
|
Integer |
getIntegerAttribute(String id,
String attributeName)
DOCUMENT ME! |
String |
getLastEquationError()
Returns any attribute-equation related error message after a call to getAttribute() or getXXXAttribute(). |
List |
getListAttribute(String id,
String attributeName)
Gets a 'simple' list of attributes for the id/attributeName pair. |
byte |
getListElementType(String attributeName)
Gets the member data type of the specified simple list attribute. |
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,
Equation equation)
|
void |
setAttribute(String id,
String attributeName,
Equation equation,
byte dataType)
|
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 |
setListAttribute(String id,
String attributeName,
Equation equation)
Sets a simple list of attributes. |
void |
setListAttribute(String id,
String attributeName,
List list)
Sets a simple list of attributes. |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final CyLogger logger
| Constructor Detail |
|---|
public CyAttributesImpl()
| Method Detail |
|---|
public void setAttributeDescription(String attributeName,
String description)
setAttributeDescription in interface CyAttributesattributeName - DOCUMENT ME!description - DOCUMENT ME!public String getAttributeDescription(String attributeName)
getAttributeDescription in interface CyAttributesattributeName - DOCUMENT ME!
public void setUserVisible(String attributeName,
boolean value)
setUserVisible in interface CyAttributesattributeName - DOCUMENT ME!value - DOCUMENT ME!public boolean getUserVisible(String attributeName)
getUserVisible in interface CyAttributesattributeName - DOCUMENT ME!
public void setUserEditable(String attributeName,
boolean value)
setUserEditable in interface CyAttributesattributeName - DOCUMENT ME!value - DOCUMENT ME!public boolean getUserEditable(String attributeName)
getUserEditable in interface CyAttributesattributeName - DOCUMENT ME!
public String[] getAttributeNames()
getAttributeNames in interface CyAttributes
public boolean hasAttribute(String id,
String attributeName)
hasAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!
public void setAttribute(String id,
String attributeName,
Boolean value)
setAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!value - DOCUMENT ME!
public void setAttribute(String id,
String attributeName,
Integer value)
setAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!value - DOCUMENT ME!
public void setAttribute(String id,
String attributeName,
Double value)
setAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!value - DOCUMENT ME!
public void setAttribute(String id,
String attributeName,
String value)
setAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!value - DOCUMENT ME!
public void setAttribute(String id,
String attributeName,
Equation equation)
setAttribute in interface CyAttributesid - unique identifier.attributeName - attribute name.equation - an attribute equation
public void setAttribute(String id,
String attributeName,
Equation equation,
byte dataType)
setAttribute in interface CyAttributesid - unique identifier.attributeName - attribute name.equation - an attribute equationdataType - must be one of MultiHashMapDefinition.TYPE_{BOOLEAN,STRING,INTEGER, or FLOATING_POINT}
public Boolean getBooleanAttribute(String id,
String attributeName)
getBooleanAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!
public Integer getIntegerAttribute(String id,
String attributeName)
getIntegerAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!
public Double getDoubleAttribute(String id,
String attributeName)
getDoubleAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!
public String getStringAttribute(String id,
String attributeName)
getStringAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!
public Object getAttribute(String id,
String attributeName)
getAttribute in interface CyAttributesid - unique identifier.attributeName - attribute name.
public byte getType(String attributeName)
getType in interface CyAttributesattributeName - DOCUMENT ME!
public byte getListElementType(String attributeName)
getListElementType in interface CyAttributesattributeName - the name of a simple list attribute
public boolean deleteAttribute(String id,
String attributeName)
deleteAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!
public boolean deleteAttribute(String attributeName)
deleteAttribute in interface CyAttributesattributeName - DOCUMENT ME!
public void setListAttribute(String id,
String attributeName,
List list)
CyAttributesA simple list is defined as follows:
Boolean, Integer,
Double or String.
If the above requirements are not met, an IllegalArgumentException will be thrown.
Implementation note: calling this method results in many calls to the MultiHashMap back-end data store. For example, if you have five elements in a List, the implementation code makes five calls to the MultiHashMap. Therefore, if you are listening to MultiHashMap events, you will be notified of five separate events, rather than one global list event.
setListAttribute in interface CyAttributesid - unique identifier.list - attribute name.
public void setListAttribute(String id,
String attributeName,
Equation equation)
CyAttributesA simple list is defined as follows:
Boolean, Integer,
Double or String.
If the above requirements are not met, an IllegalArgumentException will be thrown.
Implementation note: calling this method results in many calls to the MultiHashMap back-end data store. For example, if you have five elements in a List, the implementation code makes five calls to the MultiHashMap. Therefore, if you are listening to MultiHashMap events, you will be notified of five separate events, rather than one global list event.
setListAttribute in interface CyAttributesid - unique identifier.equation - an attribute equation
public List getAttributeList(String id,
String attributeName)
getAttributeList in interface CyAttributes
public List getListAttribute(String id,
String attributeName)
CyAttributesA 'simple' list is defined as follows:
Boolean, Integer,
Double or String.
Note: The returned List is useful for read operations only. If you add, edit, or delete elements within this list, these changes will not be stored, unless you explicitly call setListAttribute() again. For example:
List list = nodeAttributes.getListAttribute(id, attributeName);
// Add new item
list.add(new String("Hello, World");
// Save modified list back
nodeAttributes.setListAttribute(id, attributeName, list);
getListAttribute in interface CyAttributesid - unique identifier.attributeName - attribute name.
public void setMapAttribute(String id,
String attributeName,
Map map)
setMapAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!map - DOCUMENT ME!
public Map getAttributeMap(String id,
String attributeName)
getAttributeMap in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!
public Map getMapAttribute(String id,
String attributeName)
getMapAttribute in interface CyAttributesid - DOCUMENT ME!attributeName - DOCUMENT ME!
public MultiHashMap getMultiHashMap()
getMultiHashMap in interface CyAttributespublic MultiHashMapDefinition getMultiHashMapDefinition()
getMultiHashMapDefinition in interface CyAttributes
public Equation getEquation(String id,
String attributeName)
getEquation in interface CyAttributespublic String getLastEquationError()
getLastEquationError in interface CyAttributes
|
Cytoscape 2.8.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||