com.hp.ucmdb.api.discovery.types
Enum ParsingRule.RuleType

java.lang.Object
  extended by java.lang.Enum<ParsingRule.RuleType>
      extended by com.hp.ucmdb.api.discovery.types.ParsingRule.RuleType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ParsingRule.RuleType>
Enclosing interface:
ParsingRule

public static enum ParsingRule.RuleType
extends java.lang.Enum<ParsingRule.RuleType>

Rule types.


Enum Constant Summary
COMMAND_LINE
          The rule will specify a sub-string to find in the command line.
IP
          The rule will specify a valid IPv4 address ("x.x.x.x").
NAME
          The rule will specify the name of the process.
OWNER
          The rule will specify the user name of the user that ran the process.
PORT
          The rule will specify a port number or name.
 
Method Summary
static ParsingRule.RuleType getFromName(java.lang.String str)
           
 java.lang.String getName()
           
 java.lang.String toString()
           
static ParsingRule.RuleType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ParsingRule.RuleType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PORT

public static final ParsingRule.RuleType PORT
The rule will specify a port number or name.


IP

public static final ParsingRule.RuleType IP
The rule will specify a valid IPv4 address ("x.x.x.x").


COMMAND_LINE

public static final ParsingRule.RuleType COMMAND_LINE
The rule will specify a sub-string to find in the command line.


NAME

public static final ParsingRule.RuleType NAME
The rule will specify the name of the process.


OWNER

public static final ParsingRule.RuleType OWNER
The rule will specify the user name of the user that ran the process.

Method Detail

values

public static ParsingRule.RuleType[] 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 (ParsingRule.RuleType c : ParsingRule.RuleType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ParsingRule.RuleType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<ParsingRule.RuleType>

getFromName

public static ParsingRule.RuleType getFromName(java.lang.String str)


Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.