Package org.sblim.wbem.cim
Class CIMFlavor
- java.lang.Object
-
- org.sblim.wbem.cim.CIMFlavor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
public class CIMFlavor extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
DISABLEOVERRIDE
static int
ENABLEOVERRIDE
static int
RESTRICTED
static int
TOSUBCLASS
static int
TRANSLATE
-
Constructor Summary
Constructors Constructor Description CIMFlavor(int pFlavor)
Construct an object CIMFlavor given the flavor type.
-
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
getFlavor()
Gets this object flavor type.static CIMFlavor
getFlavor(int flavor)
Gets an object of the specified CIMFlavor.int
hashCode()
java.lang.String
toMOF()
Returns the MOF representation of this object.java.lang.String
toString()
-
-
-
Field Detail
-
ENABLEOVERRIDE
public static final int ENABLEOVERRIDE
- See Also:
- Constant Field Values
-
DISABLEOVERRIDE
public static final int DISABLEOVERRIDE
- See Also:
- Constant Field Values
-
RESTRICTED
public static final int RESTRICTED
- See Also:
- Constant Field Values
-
TOSUBCLASS
public static final int TOSUBCLASS
- See Also:
- Constant Field Values
-
TRANSLATE
public static final int TRANSLATE
- See Also:
- Constant Field Values
-
-
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
-
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 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
-
-