org.sblim.wbem.cim

Class CIMFlavor

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class CIMFlavor
extends java.lang.Object
implements Serializable, Cloneable, Comparable

CIMFlavor.java (C) Copyright IBM Corp. 2005, 2009 THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Eclipse Public License from http://www.opensource.org/licenses/eclipse-1.0.php

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

Object
clone()
int
compareTo(Object o)
boolean
equals(Object obj)
int
getFlavor()
Gets this object flavor type.
static CIMFlavor
getFlavor(int flavor)
Gets an object of the specified CIMFlavor.
int
hashCode()
String
toMOF()
Returns the MOF representation of this object.
String
toString()

Field Details

DISABLEOVERRIDE

public static final int DISABLEOVERRIDE
Field Value:
1

ENABLEOVERRIDE

public static final int ENABLEOVERRIDE
Field Value:
0

RESTRICTED

public static final int RESTRICTED
Field Value:
2

TOSUBCLASS

public static final int TOSUBCLASS
Field Value:
3

TRANSLATE

public static final int TRANSLATE
Field Value:
4

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

clone

public Object clone()

compareTo

public int compareTo(Object o)

equals

public boolean equals(Object obj)

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

hashCode

public int hashCode()

toMOF

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

toString

public String toString()

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