com.vhosting.netconf
Enum EditConfig.DefaultEditOperation

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

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

This enumeration lists each type of operation by default when editing configuration data.

Author:
Giuseppe Palmeri

Enum Constant Summary
merge
          The configuration data in the specified Config instance is merged with the configuration at the corresponding level in the target Container.
none
          The target Container is unaffected by the configuration in the specified Config instance, unless and until the incoming configuration data uses the "operation" attribute to request a different operation.
replace
          The configuration data in the specified Config instance is completely replaces the configuration in the target Container.
 
Method Summary
static EditConfig.DefaultEditOperation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EditConfig.DefaultEditOperation[] 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

merge

public static final EditConfig.DefaultEditOperation merge
The configuration data in the specified Config instance is merged with the configuration at the corresponding level in the target Container. This is the default behavior.


replace

public static final EditConfig.DefaultEditOperation replace
The configuration data in the specified Config instance is completely replaces the configuration in the target Container. This is useful for loading previously saved configuration data.


none

public static final EditConfig.DefaultEditOperation none
The target Container is unaffected by the configuration in the specified Config instance, unless and until the incoming configuration data uses the "operation" attribute to request a different operation. If the configuration in the Config instance parameter contains data for which there is not a corresponding level in the target Container, an RPC error is returned with an Error Tag value of data-missing. Using "none" allows operations like "delete" to avoid unintentionally creating the parent hierarchy of the element to be deleted.

Method Detail

values

public static EditConfig.DefaultEditOperation[] 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.DefaultEditOperation c : EditConfig.DefaultEditOperation.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.DefaultEditOperation 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