Package org.cytoscape.model
Enum CyEdge.Type
- java.lang.Object
-
- java.lang.Enum<CyEdge.Type>
-
- org.cytoscape.model.CyEdge.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<CyEdge.Type>
- Enclosing interface:
- CyEdge
public static enum CyEdge.Type extends Enum<CyEdge.Type>
The Type enum is used by methods inCyNetwork
to restrict the edges that match a query.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
matches any edgeDIRECTED
matches directed edges regardless of whether this node is the source or the targetINCOMING
matches either undirected edges or directed edges that end with this nodeOUTGOING
matches either undirected edges or directed edges that start with this nodeUNDIRECTED
matches only undirected edges
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CyEdge.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static CyEdge.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDIRECTED
public static final CyEdge.Type UNDIRECTED
matches only undirected edges
-
INCOMING
public static final CyEdge.Type INCOMING
matches either undirected edges or directed edges that end with this node
-
OUTGOING
public static final CyEdge.Type OUTGOING
matches either undirected edges or directed edges that start with this node
-
DIRECTED
public static final CyEdge.Type DIRECTED
matches directed edges regardless of whether this node is the source or the target
-
ANY
public static final CyEdge.Type ANY
matches any edge
-
-
Method Detail
-
values
public static CyEdge.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CyEdge.Type c : CyEdge.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CyEdge.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-