org.sblim.wbem.cim

Class CIMScope

Implemented Interfaces:
Cloneable, Comparable, Serializable

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

Authors:
Roberto Pineiro
Chung-hao (Danny)

Field Summary

static int
ANY
static int
ASSOCIATION
static int
CLASS
static int
INDICATION
static int
METHOD
static int
PARAMETER
static int
PROPERTY
static int
REFERENCE
static int
SCHEMA
protected static CIMScope[]
SCOPES

Constructor Summary

CIMScope(int pScope)
Deprecated. use getScope(int) instead

Method Summary

Object
clone()
int
compareTo(Object o)
boolean
equals(Object obj)
int
getScope()
Gets this scope's integer code
static CIMScope
getScope(int pScopeCode)
Returns an instance of the CIMScope given the specified argument.
int
hashCode()
String
toMOF()
Returns the MOF representation of this object.
String
toString()

Field Details

ANY

public static final int ANY
Field Value:
8

ASSOCIATION

public static final int ASSOCIATION
Field Value:
2

CLASS

public static final int CLASS
Field Value:
1

INDICATION

public static final int INDICATION
Field Value:
3

METHOD

public static final int METHOD
Field Value:
6

PARAMETER

public static final int PARAMETER
Field Value:
7

PROPERTY

public static final int PROPERTY
Field Value:
4

REFERENCE

public static final int REFERENCE
Field Value:
5

SCHEMA

public static final int SCHEMA
Field Value:
0

SCOPES

protected static final CIMScope[] SCOPES

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

clone

public Object clone()

compareTo

public int compareTo(Object o)

equals

public boolean equals(Object obj)

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

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, 2006 IBM Corporation. All Rights Reserved.