Package org.sblim.wbem.cim
Class CIMScope
- java.lang.Object
-
- org.sblim.wbem.cim.CIMScope
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
public class CIMScope extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable, java.io.Serializable
- Author:
- Roberto Pineiro, Chung-hao (Danny)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CIMScope(int pScope)
Deprecated.use getScope(int) instead
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
int
compareTo(java.lang.Object o)
boolean
equals(java.lang.Object obj)
int
getScope()
Gets this scope's integer codestatic CIMScope
getScope(int pScopeCode)
Returns an instance of the CIMScope given the specified argument.int
hashCode()
java.lang.String
toMOF()
Returns the MOF representation of this object.java.lang.String
toString()
-
-
-
Field Detail
-
SCHEMA
public static final int SCHEMA
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
ASSOCIATION
public static final int ASSOCIATION
- See Also:
- Constant Field Values
-
INDICATION
public static final int INDICATION
- See Also:
- Constant Field Values
-
PROPERTY
public static final int PROPERTY
- See Also:
- Constant Field Values
-
REFERENCE
public static final int REFERENCE
- See Also:
- Constant Field Values
-
METHOD
public static final int METHOD
- See Also:
- Constant Field Values
-
PARAMETER
public static final int PARAMETER
- See Also:
- Constant Field Values
-
ANY
public static final int ANY
- See Also:
- Constant Field Values
-
SCOPES
protected static final CIMScope[] SCOPES
-
-
Constructor Detail
-
CIMScope
public CIMScope(int pScope)
Deprecated.use getScope(int) insteadCreates 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 Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.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 java.lang.String toMOF()
Returns the MOF representation of this object.- Returns:
- The MOF representation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
-