org.sblim.wbem.cim

Class CIMParameter

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class CIMParameter
extends CIMQualifiableElement
implements Cloneable, Serializable

CIMParameter.java (C) Copyright IBM Corp. 2005, 2006 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Field Summary

Fields inherited from class org.sblim.wbem.cim.CIMQualifiableElement

iQualifiers

Fields inherited from class org.sblim.wbem.cim.CIMElement

CLOSING_BRAKET, EMPTY, OPENING_BRAKET, iName

Constructor Summary

CIMParameter()
Creates an object of CIMParameter.
CIMParameter(String pName)
Creates an object of CIMParameter with the specified name.

Method Summary

Object
clone()
int
getSize()
Returns the size of this object.
CIMDataType
getType()
Returns the CIM data type of this object
int
hashCode()
void
setSize(int size)
Deprecated. Using this method can produce inconsitency and break invariants
void
setType(CIMDataType pType)
Specifies the CIMDataType for this object.
String
toMOF()
Returns the MOF representation of this object.
String
toString()

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, equals, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString

Constructor Details

CIMParameter

public CIMParameter()
Creates an object of CIMParameter.

CIMParameter

public CIMParameter(String pName)
Creates an object of CIMParameter with the specified name.
Parameters:
pName - The parameter's name

Method Details

clone

public Object clone()

getSize

public int getSize()
Returns the size of this object. A value of CIMDataType.SIZE_SINGLE is returned for single elements, CIMDataType.SIZE_UNLIMITED is returned for variable length arrays, and zero or a positive number is returned for a fixed length array.
Returns:
The size

getType

public CIMDataType getType()
Returns the CIM data type of this object
Returns:
The type

hashCode

public int hashCode()

setSize

public void setSize(int size)

Deprecated. Using this method can produce inconsitency and break invariants

Sets the size of this object
Parameters:
size - The size

setType

public void setType(CIMDataType pType)
Specifies the CIMDataType for this object.
Parameters:
pType - The type

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.