org.sblim.wbem.cim
Class CIMFlavor

java.lang.Object
  extended by 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
static int DISABLEOVERRIDE
           
static int ENABLEOVERRIDE
           
static int RESTRICTED
           
static int TOSUBCLASS
           
static int TRANSLATE
           
 
Constructor Summary
CIMFlavor(int pFlavor)
          Construct an object CIMFlavor given the flavor type.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

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 Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.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 class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

compareTo

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


Copyright © 2005, 2008 IBM Corporation. All Rights Reserved.