Package net.aifusion.metamodel
Class CimMethod
java.lang.Object
net.aifusion.metamodel.QualifiedElement
net.aifusion.metamodel.CimMethod
Class to represent a CIM Method. CIM Methods are created as part of CIM Class definitions by the
MOFParser
.- Author:
- Sharad Singhal
-
Method Summary
Modifier and TypeMethodDescriptionGet the CIM type of this elementgetEnum()
Get the enumeration associated with this methodGet the full name for this method.Get the case-normalized (lower case) name for this elementgetName()
Get the name of this elementGet the name of the class where this method is declaredGet the list of parameters defined in this methodGet the referenced class name for this methodGet the return type associated with this methodGet the structure associated with this methodint
hashCode()
invoke
(List<CimParameter> cimParameters) Invoke this method with the given parameters.boolean
isStatic()
Check if this method is a static methodtoMOF()
Return the MOF representation of this elementtoString()
Methods inherited from class net.aifusion.metamodel.QualifiedElement
equals, getQualifiers, getQualifierValue, hasQualifier
-
Method Details
-
getRefClassName
Get the referenced class name for this method- Returns:
- - referenced class name. Null if this method does not return an objectPath
-
getEnum
Get the enumeration associated with this method- Returns:
- - referenced enumeration. Null if this method does not return an enumeration value
-
getStruct
Get the structure associated with this method- Returns:
- - referenced structure. Null if this method does not return a structure value
-
getReturnedType
Get the return type associated with this method- Returns:
- - data type returned by this method
-
getOriginClass
Get the name of the class where this method is declared- Returns:
- - fully qualified name of the declaring class or structure
-
getParameters
Get the list of parameters defined in this method- Returns:
- a shallow copy of the parameter list
-
invoke
Invoke this method with the given parameters.- Parameters:
cimParameters
- - parameters to invoke this method- Returns:
- - value returned by this method
-
isStatic
public boolean isStatic()Check if this method is a static method- Returns:
- - true if the method is static, false otherwise
-
getFullName
Get the full name for this method. The full name for the method is the originClass '#' featureName- Returns:
- full name for the method
-
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()
-