|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.cim.CIMInstance
This class represents a CIM instance as defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004).
Constructor Summary | |
CIMInstance(CIMObjectPath name,
CIMProperty[] props)
Constructs a CIMInstance object using the name and properties specified. |
Method Summary | |
CIMInstance |
deriveInstance(CIMObjectPath pPath)
Returns a CIMInstance with the updated CIMObjectPath. |
CIMInstance |
deriveInstance(CIMProperty[] pArray)
Returns a CIMInstance with the updated values for the properties in pArray. |
boolean |
equals(java.lang.Object o)
Indicates whether some other instance is "equal to" this one. |
CIMInstance |
filterProperties(boolean localOnly,
boolean includeClassOrigin,
java.lang.String[] propertyList)
This method returns a new CIMInstance with properties filtered according to the input parameters. |
java.lang.String |
getClassName()
Get the name of the class that instantiates this CIM instance |
CIMProperty[] |
getKeys()
Get the key properties for this instance. |
CIMObjectPath |
getObjectPath()
Returns the CIMObjectPath that represents this instance. |
CIMProperty[] |
getProperties()
Retrieve an array of the properties for this instance. |
CIMProperty |
getProperty(int pIndex)
Get a class property by index. |
CIMProperty |
getProperty(java.lang.String name)
Returns the specified property |
CIMProperty |
getProperty(java.lang.String name,
java.lang.String originClass)
Returns the specified CIMProperty. |
int |
getPropertyCount()
Get the number of properties defined in this CIMClass. |
java.lang.Object |
getPropertyValue(java.lang.String name)
Returns the value of a property of this CIM Instance. |
int |
hashCode()
Computes the hash code for this instance. |
java.lang.String |
toString()
Returns a String representation of the CIMInstance. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CIMInstance(CIMObjectPath name, CIMProperty[] props)
name
- The objectpath for this CIMInstanceprops
- The properties for this CIMInstance
java.lang.IllegalArgumentException
- name is null or name.getObjectName() is null
[OPTIONAL]
- IllegalArgumentException
If the key property values do not match the values in
the porperty array. This is optional due to the cost
of the verification. Some implementations may leave it
up to the developer to ensure that the values match.Method Detail |
public CIMInstance deriveInstance(CIMObjectPath pPath)
pPath
- The complete CIMObjectPath for this instance
public CIMInstance deriveInstance(CIMProperty[] pArray)
pArray
- -
The array of properties to update.
public boolean equals(java.lang.Object o)
o
- the object to compare
public CIMInstance filterProperties(boolean localOnly, boolean includeClassOrigin, java.lang.String[] propertyList)
localOnly
- Include only the properties values that were instantiated in
this instance.includeClassOrigin
- classOrigins are only included if true.propertyList
- If the PropertyList input parameter is not NULL, the members
of the array define one or more Property names. The returned
Instance does not include elements for any Properties missing
from this list. If the PropertyList input parameter is an
empty array this signifies that no Properties are included in
each returned class. If the PropertyList input parameter is
NULL this specifies that all Properties are included in each
returned class. If the PropertyList contains duplicate
elements or invalid property names, they are ignored.
public java.lang.String getClassName()
public CIMProperty[] getKeys()
public CIMObjectPath getObjectPath()
getObjectPath
in interface javax.cim.CIMNamedElementInterface
public CIMProperty[] getProperties()
public CIMProperty getProperty(int pIndex)
pIndex
- The index of the class property to retrieve
public CIMProperty getProperty(java.lang.String name)
name
- The text string for the name of the property
public CIMProperty getProperty(java.lang.String name, java.lang.String originClass)
name
- The string name of the property to get.originClass
- (Optional) The string name of the class in which the property
was defined.
public int getPropertyCount()
public java.lang.Object getPropertyValue(java.lang.String name)
name
- The name of the property
public int hashCode()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |