org.sblim.wbem.cim
public class CIMClass extends CIMObject implements java.io.Serializable, java.lang.Cloneable
iAllProperties, iObjectPath
iQualifiers
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
Constructor and Description |
---|
CIMClass()
Constructs an object of a CIMClass.
|
CIMClass(CIMObjectPath pObjectPath)
Construct an object of a CIMClass pointing to the specified
CIMObjectPath.
|
CIMClass(java.lang.String pClassName)
Construct an object of a CIMClass with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
addMethod(CIMMethod pMethod)
Add a CIMMethod to this class.
|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
CIMClass |
filterProperties(java.lang.String[] pPropertyList)
Creates a replica of this CIMClass only with the properties specified in
the propertyList argument.
|
java.util.Vector |
getAllMethods()
Return all the methods for this class, including all the methods
inherited from superclasses.
|
protected CIMMethod |
getAllMethods(CIMMethod pMethod) |
protected CIMMethod |
getMethod(CIMMethod pMethod)
Gets a method corresponding to the specified name
|
CIMMethod |
getMethod(java.lang.String pName)
Returns a CIMMethod with the specified name.
|
CIMMethod |
getMethod(java.lang.String pName,
java.lang.String pOriginClass)
Returns a CIMMethod with the specified name for the given class origin.
|
java.util.Vector |
getMethods()
Returns a vector containing all the CIMMethods defined by this CIMClass,
without including the methods inherited by any super classes.
|
CIMObjectPath |
getObjectPath()
Returns the CIMObjectPath from this object.
|
java.lang.String |
getSuperClass()
Returns the name of the super class.
|
int |
hashCode() |
boolean |
isAssociation()
Determines if this CIMClass contains the Association qualifier.
|
boolean |
isKeyed()
Determines if this CIMClass contains any keyed CIMProperty.
|
CIMClass |
localElements()
Creates a replica of this CIMClass which only contains the objects local
CIMProperties and CIMMethods.
|
static void |
main(java.lang.String[] args) |
CIMInstance |
newInstance()
Creates an CIMInstance object based on this CIMClass.
|
int |
numberOfProperties()
Returns the number of properties in this class.
|
int |
numberOfQualifiers()
Returns the number of qualifiers in this class.
|
void |
setIsAssociation(boolean pValue)
Adds or removes the Association qualifier from this CIMClass.
|
void |
setIsKeyed(boolean pValue)
Deprecated.
this method may lead to confusion. Instead of this method
application are encourage to remove/add the Key qualifier
manually.
|
void |
setMethods(java.util.Vector pMethods)
Assigns the specified vector with CIMMethod to this CIMClass.
|
void |
setName(java.lang.String pName)
Sets the name for this CIMClass.
|
void |
setObjectPath(CIMObjectPath pObjectPath)
Sets the CIMObjectPath for the current CIMClass.
|
void |
setSuperClass(java.lang.String pClass)
Sets the super class for this class.
|
java.lang.String |
toMOF()
Returns the MOF representation of this object.
|
java.lang.String |
toString() |
addProperty, getAllProperties, getKeys, getProperties, getProperty, getProperty, getProperty, removeProperty, setProperties, setProperty
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiers
appendTab, assign, compareTo, getName, lessThan, vectorToMOFString, vectorToMOFString, vectorToMOFString
public CIMClass()
public CIMClass(java.lang.String pClassName)
pClassName
- public CIMClass(CIMObjectPath pObjectPath)
pObjectPath
- java.lang.IllegalArgumentException
- if the object name of the objectpath or the object path are
nullpublic void addMethod(CIMMethod pMethod)
pMethod
- defines a CIMMethod to be added to the class. If the method
already exists, nothing happend.java.lang.IllegalArgumentException
- if the specified method is null.public java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class CIMElement
protected CIMMethod getMethod(CIMMethod pMethod)
pMethod
- A CIMMethod with the name to look forpublic CIMClass filterProperties(java.lang.String[] pPropertyList)
pPropertyList
- An array with string of property names. (case sencitive names)public java.util.Vector getAllMethods()
public CIMMethod getMethod(java.lang.String pName)
pName
- The method's namepublic CIMMethod getMethod(java.lang.String pName, java.lang.String pOriginClass)
pName
- The method's namepOriginClass
- The class originpublic java.util.Vector getMethods()
public java.lang.String getSuperClass()
public boolean isAssociation()
public boolean isKeyed()
public CIMClass localElements()
public CIMInstance newInstance()
public int numberOfProperties()
public int numberOfQualifiers()
public void setSuperClass(java.lang.String pClass)
pClass
- public void setIsAssociation(boolean pValue)
pValue
- public void setIsKeyed(boolean pValue)
pValue
- public void setMethods(java.util.Vector pMethods)
pMethods
- public void setName(java.lang.String pName)
setName
in class CIMElement
pName
- The namepublic CIMObjectPath getObjectPath()
public void setObjectPath(CIMObjectPath pObjectPath)
setObjectPath
in class CIMObject
pObjectPath
- public java.lang.String toMOF()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.