|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.cim.CIMElement javax.cim.CIMClass
This class represents a CIM class as defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004). A CIMClass has the following attributes
Constructor Summary | |
CIMClass(CIMObjectPath path,
java.lang.String superclass,
CIMQualifier[] qualifiers,
CIMClassProperty[] props,
CIMMethod[] pMethods,
boolean pIsAssociation,
boolean pIsKeyed)
Creates and instantiates a Java object representing a CIM Class. |
|
CIMClass(java.lang.String name,
java.lang.String superclass,
CIMQualifier[] qualifiers,
CIMClassProperty[] props,
CIMMethod[] methods)
Creates and instantiates a Java object representing a CIM Class. |
Method Summary | |
CIMClass |
filterProperties(boolean localOnly,
boolean includeQualifiers,
boolean includeClassOrigin,
java.lang.String[] propertyList)
This method returns a new CIMClass with properties filtered according to the input parameters. |
CIMClassProperty[] |
getKeys()
Returns a list of key properties for this CIM class. |
CIMMethod |
getMethod(int pIndex)
Get a method by index. |
CIMMethod |
getMethod(java.lang.String name)
Returns the specified CIM method in this CIM class. |
CIMMethod |
getMethod(java.lang.String name,
java.lang.String originClass)
Returns the CIM method specified by its name and optionally, its origin class. |
int |
getMethodCount()
Get the number of methods defined in this CIM class. |
CIMMethod[] |
getMethods()
Get the CIM methods defined in this CIM class. |
CIMObjectPath |
getObjectPath()
This method returns the CIMObjectPath that represents this CIM class. |
CIMClassProperty[] |
getProperties()
Get the properties defined for this CIM class. |
CIMClassProperty |
getProperty(int pIndex)
Get a class property by index. |
CIMClassProperty |
getProperty(java.lang.String name)
Gets the specified property. |
CIMClassProperty |
getProperty(java.lang.String name,
java.lang.String originClass)
Gets the specified property. |
int |
getPropertyCount()
Get the number of properties defined in this CIMClass. |
CIMQualifier |
getQualifier(int pIndex)
Get a qualifier by index. |
CIMQualifier |
getQualifier(java.lang.String pName)
Gets a qualifier by name. |
int |
getQualifierCount()
Get the number of qualifiers defined in this CIM class. |
CIMQualifier[] |
getQualifiers()
Returns the list of qualifiers for the CIM class. |
java.lang.Object |
getQualifierValue(java.lang.String name)
Gets a qualifier value by name. |
java.lang.String |
getSuperClassName()
Gets the name of the parent of this CIM class. |
boolean |
hasQualifier(java.lang.String pName)
Checks whether the specified qualifier is one of the qualifiers in this CIM class. |
boolean |
hasQualifierValue(java.lang.String name,
java.lang.Object value)
Checks whether the specified qualifier is one of the qualifiers defined for this class with the specified value. |
boolean |
isAssociation()
Identifies whether or not this CIM class is an association. |
boolean |
isKeyed()
Identifies whether or not this class is keyed. |
CIMInstance |
newInstance()
Returns a new CIM instance initialized with the default CIM properties, values and name of this CIM class. |
java.lang.String |
toString()
Returns a String representation of the CIM class. |
Methods inherited from class javax.cim.CIMElement |
equals, getName, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CIMClass(CIMObjectPath path, java.lang.String superclass, CIMQualifier[] qualifiers, CIMClassProperty[] props, CIMMethod[] pMethods, boolean pIsAssociation, boolean pIsKeyed)
path
- Object Name of the CIM class.superclass
- Name of the superclass.qualifiers
- List of qualifiers of the CIM class.props
- List of properties of the CIM class.pMethods
- List of methods of the CIM class.pIsAssociation
- True if the CIM class is an Association, false otherwise.pIsKeyed
- True if the CIM class has Keys, false otherwise.public CIMClass(java.lang.String name, java.lang.String superclass, CIMQualifier[] qualifiers, CIMClassProperty[] props, CIMMethod[] methods)
name
- Name of the CIM class.superclass
- Name of the superclass.qualifiers
- List of qualifiers of the CIM class.props
- List of properties of the CIM class.methods
- List of methods of the CIM class.Method Detail |
public CIMClass filterProperties(boolean localOnly, boolean includeQualifiers, boolean includeClassOrigin, java.lang.String[] propertyList)
localOnly
- If true only the elements defined in this class are included;
otherwise all elements are included.includeQualifiers
- If true qualifiers are included on all elements; otherwise no
qualifiers are included.includeClassOrigin
- If true, the ClassOrigin attribute is includedpropertyList
- If the PropertyList input parameter is not NULL, the members
of the array define one or more Property names. The CIMClass
returned 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
the class returned. If the PropertyList input parameter is
NULL this specifies that all Properties are included in the
class returned. If the PropertyList contains duplicate
elements or invalid property names, they are ignored.
public CIMClassProperty[] getKeys()
public CIMMethod getMethod(int pIndex)
pIndex
- The index of the method to retrieve
public CIMMethod getMethod(java.lang.String name)
name
- The string name of the method to retrieve. The name may be
specified in the form "originClass.methodName".
public CIMMethod getMethod(java.lang.String name, java.lang.String originClass)
name
- The string name of the method to get.originClass
- (Optional) The class in which the method was defined.
public int getMethodCount()
public CIMMethod[] getMethods()
public CIMObjectPath getObjectPath()
getObjectPath
in interface javax.cim.CIMNamedElementInterface
public CIMClassProperty[] getProperties()
public CIMClassProperty getProperty(int pIndex)
pIndex
- The index of the class property to retrieve
public CIMClassProperty getProperty(java.lang.String name)
name
- The text string for the name of the property
public CIMClassProperty 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 CIMQualifier getQualifier(int pIndex)
getQualifier
in interface CIMQualifiedElementInterface
pIndex
- The index of the qualifier to retrieve
public CIMQualifier getQualifier(java.lang.String pName)
getQualifier
in interface CIMQualifiedElementInterface
pName
- The name of the qualifier to get.
public int getQualifierCount()
getQualifierCount
in interface CIMQualifiedElementInterface
public CIMQualifier[] getQualifiers()
getQualifiers
in interface CIMQualifiedElementInterface
public java.lang.Object getQualifierValue(java.lang.String name)
getQualifierValue
in interface CIMQualifiedElementInterface
name
- The name of the qualifier to get.
public java.lang.String getSuperClassName()
public boolean hasQualifier(java.lang.String pName)
hasQualifier
in interface CIMQualifiedElementInterface
pName
- the name of the qualifier
public boolean hasQualifierValue(java.lang.String name, java.lang.Object value)
hasQualifierValue
in interface CIMQualifiedElementInterface
name
- the name of the qualifiervalue
- the value to be tested
public boolean isAssociation()
public boolean isKeyed()
public CIMInstance newInstance()
public java.lang.String toString()
toString
in class CIMElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |