Package net.aifusion.metamodel
Class CimParameter
java.lang.Object
net.aifusion.metamodel.QualifiedElement
net.aifusion.metamodel.CimParameter
Class to represent a CIM method parameter.
- Author:
- Sharad Singhal
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the data type associated with this parameterGet the default value of this parameterGet the CIM type of this elementgetEnum()
Get the enumeration associated with this parameterGet the full name of the parameter.Get the case-normalized (lower case) name for this elementgetName()
Get the name of this elementGet the referenced class name for this parameterGet the structure associated with this parametergetValue()
Get the value of this parameter.boolean
Check if this parameter has a default value defined in itint
hashCode()
boolean
Check if this parameter has a non-null value defined in itboolean
hasValue()
Check if this parameter has a value defined in itboolean
isArray()
Check if this parameter is an array parameterboolean
isInput()
Check if this parameter is an input parameterboolean
isOutput()
Check if this parameter is an output parameterboolean
Check if this parameter is a reference parametervoid
Set the value of this parameter.toMOF()
Return the MOF representation of this elementtoString()
Methods inherited from class net.aifusion.metamodel.QualifiedElement
getQualifiers, getQualifierValue, hasQualifier
-
Method Details
-
getFullName
Get the full name of the parameter. The full name of the parameter is originClassName '#' MethodName '$' parameterName- Returns:
- the full name for the parameter
-
getRefClassName
Get the referenced class name for this parameter- Returns:
- - referenced class name. Null if this parameter is not a reference parameter
-
getEnum
Get the enumeration associated with this parameter- Returns:
- - referenced enumeration. Null if this parameter does not refer to an enumeration
-
getStruct
Get the structure associated with this parameter- Returns:
- - referenced structure. Null if this parameter does not refer to a structure
-
getDataType
Get the data type associated with this parameter- Returns:
- - data type for this parameter
-
hasDefaultValue
public boolean hasDefaultValue()Check if this parameter has a default value defined in it- Returns:
- - true if this parameter has a default value, false otherwise
-
getDefaultValue
Get the default value of this parameter- Returns:
- - default value of this parameter. Null if no default value is defined
-
hasValue
public boolean hasValue()Check if this parameter has a value defined in it- Returns:
- - true if this parameter has a value, false otherwise
-
hasNonNullValue
public boolean hasNonNullValue()Check if this parameter has a non-null value defined in it- Returns:
- - true if the parameter has a value defined, and it contains a non-null value, false otherwise
-
getValue
Get the value of this parameter. If no value is defined, returns the default value of the parameter- Returns:
- - value of the parameter
-
setValue
Set the value of this parameter.- Parameters:
value
- - value to be set in this parameter- See Also:
-
isInput
public boolean isInput()Check if this parameter is an input parameter- Returns:
- - true if this parameter is an input parameter
-
isOutput
public boolean isOutput()Check if this parameter is an output parameter- Returns:
- - true if this parameter is an output parameter
-
isReference
public boolean isReference()Check if this parameter is a reference parameter- Returns:
- - true if this parameter is a reference parameter
-
isArray
public boolean isArray()Check if this parameter is an array parameter- Returns:
- - true if this parameter is an array value, false otherwise
-
equals
- Overrides:
equals
in classQualifiedElement
-
getName
Get the name of this element- Returns:
- - name of this element
- See Also:
-
getLowerCaseName
Get the case-normalized (lower case) name for this element- Returns:
- - name of this element normalized to lower case
- See Also:
-
getElementType
Get the CIM type of this element- Returns:
- - CIMType for this element
- See Also:
-
toMOF
Return the MOF representation of this element- Returns:
- - String containing MOF representation of this element
-
toString
-
hashCode
public int hashCode()
-