Package net.aifusion.metamodel
Class CimInterface
java.lang.Object
net.aifusion.metamodel.QualifiedElement
net.aifusion.metamodel.NamedElement
net.aifusion.metamodel.CimStructure
net.aifusion.metamodel.CimClass
net.aifusion.metamodel.CimInterface
- All Implemented Interfaces:
CimEventGenerator
Class to represent a CIM Interface. Interfaces provide the ability to support multiple inheritance in class definitions. They cannot be directly
instantiated.
- Author:
- Sharad Singhal
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addListener
(CimEventType type, CimListener listener) Add a listener to this generatorGet the CIM type of this elementGet the case-normalized (lower case) name for this elementgetName()
Get the name of this elementint
hashCode()
invokeMethod
(String methodName, List<CimParameter> cimParameters) Invoke a method on this instancevoid
removeListener
(CimEventType type, CimListener listener) Remove a listener from this generatorvoid
setPropertyValue
(String propertyName, DataValue propertyValue) Set the value of a property in this structuretoMOF()
Return the MOF representation of this elementtoString()
Methods inherited from class net.aifusion.metamodel.CimClass
equals, getAllMethodNames, getMethodNames, getMethodOriginClass, getMethodParameters, getMethodQualifiers, getMethodQualifierValue, getMethodReturnType, getReferencedClass, getReferencedEnum, getReferencedStructure, hasMethod, hasMethodQualifier
Methods inherited from class net.aifusion.metamodel.CimStructure
getAllEnumerationNames, getAllInterfaceNames, getAllPropertyNames, getAllStructureNames, getDefaultPropertyValue, getEnumeration, getEnumerationNames, getInterface, getInterfaceNames, getPropertyNames, getPropertyOriginClass, getPropertyQualifiers, getPropertyQualifierValue, getPropertyType, getPropertyValue, getStructure, getStructureNames, hasEnumeration, hasKeys, hasProperty, hasPropertyQualifier, hasStructure, implementsInterface
Methods inherited from class net.aifusion.metamodel.NamedElement
getAllQualifiers, getFullName, getNameSpacePath, getObjectPath, getQualifierValue, getSuperType, hasListener, hasQualifier, isAbstract, isSubTypeOf
Methods inherited from class net.aifusion.metamodel.QualifiedElement
getQualifiers
-
Method Details
-
invokeMethod
Description copied from class:CimClass
Invoke a method on this instance- Overrides:
invokeMethod
in classCimClass
- Parameters:
methodName
- - name of the method to invokecimParameters
- - parameters required by the method- Returns:
- - returned value from the method
-
setPropertyValue
Description copied from class:CimStructure
Set the value of a property in this structure- Overrides:
setPropertyValue
in classCimStructure
- Parameters:
propertyName
- - name of the propertypropertyValue
- - value to be set in the property
-
addListener
Description copied from interface:CimEventGenerator
Add a listener to this generator- Specified by:
addListener
in interfaceCimEventGenerator
- Overrides:
addListener
in classNamedElement
- Parameters:
type
- - type of event the listener wantslistener
- - CimListener interested in events- Returns:
- - true if listener was successfully added, false otherwise
-
removeListener
Description copied from interface:CimEventGenerator
Remove a listener from this generator- Specified by:
removeListener
in interfaceCimEventGenerator
- Overrides:
removeListener
in classNamedElement
- Parameters:
type
- of event the listener wantslistener
- - CimListener to be removed
-
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()
-