Class CIMFlavor

java.lang.Object
org.sblim.wbem.cim.CIMFlavor
All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class CIMFlavor extends Object implements Serializable, Cloneable, Comparable
See Also:
  • Field Details

  • Constructor Details

    • CIMFlavor

      public CIMFlavor(int pFlavor)
      Construct an object CIMFlavor given the flavor type. Applications are encourage to use getFlavor(int) instead of this constructor.
      Parameters:
      pFlavor -
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getFlavor

      public int getFlavor()
      Gets this object flavor type.
      Returns:
      The flavor
    • getFlavor

      public static CIMFlavor getFlavor(int flavor)
      Gets an object of the specified CIMFlavor.
      Parameters:
      flavor - A flavor constant from this class
      Returns:
      The corresponding flavor
    • toMOF

      public String toMOF()
      Returns the MOF representation of this object.
      Returns:
      The MOF representation
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable