com.vhosting.netconf
Enum EditConfig.ErrorOption

java.lang.Object
  extended by java.lang.Enum<EditConfig.ErrorOption>
      extended by com.vhosting.netconf.EditConfig.ErrorOption
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EditConfig.ErrorOption>
Enclosing class:
EditConfig

public static enum EditConfig.ErrorOption
extends java.lang.Enum<EditConfig.ErrorOption>

This enumeration lists all kinds of error options. Through these you can specify how the server should behave if there are any errors.

Author:
Giuseppe Palmeri

Enum Constant Summary
continue_on_error
          Continue to process configuration data on error; error is recorded, and negative response is generated if any errors occur.
rollback_on_error
          If an error condition occurs such that an error severity RPC error element is generated, the server will stop processing the edit-config operation and restore the specified configuration to its complete state at the start of this edit-config operation.
stop_on_error
          Abort the edit-config operation on first error.
 
Method Summary
static EditConfig.ErrorOption valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EditConfig.ErrorOption[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

stop_on_error

public static final EditConfig.ErrorOption stop_on_error
Abort the edit-config operation on first error. This is the default error-option.


continue_on_error

public static final EditConfig.ErrorOption continue_on_error
Continue to process configuration data on error; error is recorded, and negative response is generated if any errors occur.


rollback_on_error

public static final EditConfig.ErrorOption rollback_on_error
If an error condition occurs such that an error severity RPC error element is generated, the server will stop processing the edit-config operation and restore the specified configuration to its complete state at the start of this edit-config operation.

Method Detail

values

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

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

valueOf

public static EditConfig.ErrorOption 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