Package org.opennms.enlinkd.generator
Enum TopologyGenerator.Protocol
- java.lang.Object
-
- java.lang.Enum<TopologyGenerator.Protocol>
-
- org.opennms.enlinkd.generator.TopologyGenerator.Protocol
-
- All Implemented Interfaces:
Serializable
,Comparable<TopologyGenerator.Protocol>
- Enclosing class:
- TopologyGenerator
public static enum TopologyGenerator.Protocol extends Enum<TopologyGenerator.Protocol>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TopologyGenerator.Protocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static TopologyGenerator.Protocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
cdp
public static final TopologyGenerator.Protocol cdp
-
isis
public static final TopologyGenerator.Protocol isis
-
lldp
public static final TopologyGenerator.Protocol lldp
-
ospf
public static final TopologyGenerator.Protocol ospf
-
bridge
public static final TopologyGenerator.Protocol bridge
-
userdefined
public static final TopologyGenerator.Protocol userdefined
-
-
Method Detail
-
values
public static TopologyGenerator.Protocol[] 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 (TopologyGenerator.Protocol c : TopologyGenerator.Protocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TopologyGenerator.Protocol 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
-
-