cytoscape.data
Interface AttributeValueVisitor
public interface AttributeValueVisitor
Interface for defining attribute value visitors--operations to
perform on each attribute value using CyAttributesUtils.traverseAttributeValues()
.
visitingAttributeValue
void visitingAttributeValue(String objTraverseID,
String attrName,
CyAttributes attrs,
Object[] keySpace,
Object visitedValue)
- Perform whatever operations are desired on the given attribute value.
- Parameters:
objTraversedID
- the identifier of the object for which we have
obtained an attribute value.attrName
- the attribute name for which this is a value.attrs
- the CyAttributes where this attribute value is stored.keySpace
- the key used to obtain this value. For complex
values, this may consist of several elements (e.g., new
Object[] {"url1", new Integer(1), new Integer(0)). Modification
of this key may lead to unexpected traversal results or errors,
so copy this key if you wish to make modifications.visitedValue
- the actual visited.- See Also:
CyAttributesUtils.traverseAttributeValues(java.lang.String, java.lang.String, cytoscape.data.CyAttributes, cytoscape.data.AttributeValueVisitor)
Copyright 2010 Cytoscape Consortium. All rights reserved.