fr.curie.BiNoM.pathways.analysis.structure
Class Element

java.lang.Object
  extended by fr.curie.BiNoM.pathways.analysis.structure.Element
Direct Known Subclasses:
Edge, Node

public class Element
extends java.lang.Object

Abstract class for attributed graph elements (Nodes, Edges, HyperEdges, etc.)


Field Summary
 java.util.Vector Attributes
           
 
Constructor Summary
Element()
           
 
Method Summary
 java.util.Vector getAttributesWithSubstringInName(java.lang.String substring)
          Finds all attributes in whose name the substring is contained
 java.util.Vector getAttributeValues(java.lang.String nam)
          Returns all attributes attached with a given name
 java.lang.String getFirstAttributeValue(java.lang.String nam)
          Finds first in the list attribute with a given name
 void setAttributeValueUnique(java.lang.String nam, java.lang.String val)
          Checks if the attribute with such a name already attached and if yes, then changes its value, if no then creates a new one
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Attributes

public java.util.Vector Attributes
Constructor Detail

Element

public Element()
Method Detail

getAttributeValues

public java.util.Vector getAttributeValues(java.lang.String nam)
Returns all attributes attached with a given name

Parameters:
nam -
Returns:

getFirstAttributeValue

public java.lang.String getFirstAttributeValue(java.lang.String nam)
Finds first in the list attribute with a given name

Parameters:
nam -
Returns:

setAttributeValueUnique

public void setAttributeValueUnique(java.lang.String nam,
                                    java.lang.String val)
Checks if the attribute with such a name already attached and if yes, then changes its value, if no then creates a new one

Parameters:
nam -
val -

getAttributesWithSubstringInName

public java.util.Vector getAttributesWithSubstringInName(java.lang.String substring)
Finds all attributes in whose name the substring is contained

Parameters:
substring -
Returns: