Enum ImportMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ImportMode>

    public enum ImportMode
    extends java.lang.Enum<ImportMode>
    The definition of import modes for MIB data.
    Version:
    3.0
    Author:
    Frank Fock
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ImportMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ImportMode[] 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

      • replaceCreate

        public static final ImportMode replaceCreate
        Replaces existing data, if there is any data available for import for the current ManagedObject and creates data that does not yet exist.
      • updateCreate

        public static final ImportMode updateCreate
        In contrast to REPLACE_CREATE, only existing data is updated or new data is created. Existing data for a ManagedObject which is not updated through imported data, will not be changed (deleted) during import.
      • update

        public static final ImportMode update
        Only update existing data. No new instances are created and nothing deleted.
      • create

        public static final ImportMode create
        Only create new instances. No updates at all.
    • Field Detail

      • REPLACE_CREATE

        public static final int REPLACE_CREATE
        Replaces existing data, if there is any data available for import for the current ManagedObject and creates data that does not yet exist.
        See Also:
        Constant Field Values
      • UPDATE_CREATE

        public static final int UPDATE_CREATE
        In contrast to REPLACE_CREATE, only existing data is updated or new data is created. Existing data for a ManagedObject which is not updated through imported data, will not be changed (deleted) during import.
        See Also:
        Constant Field Values
      • UPDATE

        public static final int UPDATE
        Only update existing data. No new instances are created and nothing deleted.
        See Also:
        Constant Field Values
      • CREATE

        public static final int CREATE
        Only create new instances. No updates at all.
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static ImportMode[] 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 (ImportMode c : ImportMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ImportMode 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