Class CIMScope

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

public class CIMScope extends Object implements Cloneable, Comparable, Serializable
Author:
Roberto Pineiro, Chung-hao (Danny)
See Also:
  • Field Details

  • Constructor Details

    • CIMScope

      public CIMScope(int pScope)
      Deprecated.
      use getScope(int) instead
      Creates an object with the specified scope. Applications are encourage to use the getScope method instead of this constructor to obtain an instance of a CIMScope.
      Parameters:
      pScope - One of the scope constants in this class
  • Method Details

    • equals

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

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

      public int getScope()
      Gets this scope's integer code
      Returns:
      The integer code
    • getScope

      public static CIMScope getScope(int pScopeCode)
      Returns an instance of the CIMScope given the specified argument.
      Parameters:
      pScopeCode -
      Returns:
      The corresponding static scope instance
    • 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