|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.wbem.cim.CIMElement
org.sblim.wbem.cim.CIMQualifiableElement
org.sblim.wbem.cim.CIMObject
org.sblim.wbem.cim.CIMClass
public class CIMClass
Defines a Java object that represents a CIM Class. A CIM Class provides the class definition for creating CIM Instances.
Field Summary |
---|
Fields inherited from class org.sblim.wbem.cim.CIMObject |
---|
iAllProperties, iObjectPath |
Fields inherited from class org.sblim.wbem.cim.CIMQualifiableElement |
---|
iQualifiers |
Fields inherited from class org.sblim.wbem.cim.CIMElement |
---|
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.sblim.wbem.cim.CIMObject |
---|
addProperty, getAllProperties, getKeys, getProperties, getProperty, getProperty, getProperty, removeProperty, setProperties, setProperty |
Methods inherited from class org.sblim.wbem.cim.CIMQualifiableElement |
---|
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiers |
Methods inherited from class org.sblim.wbem.cim.CIMElement |
---|
appendTab, assign, compareTo, getName, lessThan, vectorToMOFString, vectorToMOFString, vectorToMOFString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
nullMethod Detail |
---|
public 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 for
protected CIMMethod getAllMethods(CIMMethod pMethod)
public 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 name
public CIMMethod getMethod(java.lang.String pName, java.lang.String pOriginClass)
pName
- The method's namepOriginClass
- The class origin
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |