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 TypeMethodDescriptionbooleanaddListener(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 elementinthashCode()invokeMethod(String methodName, List<CimParameter> cimParameters) Invoke a method on this instancevoidremoveListener(CimEventType type, CimListener listener) Remove a listener from this generatorvoidsetPropertyValue(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, hasMethodQualifierMethods 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, implementsInterfaceMethods inherited from class net.aifusion.metamodel.NamedElement
getAllQualifiers, getFullName, getNameSpacePath, getObjectPath, getQualifierValue, getSuperType, hasListener, hasQualifier, isAbstract, isSubTypeOfMethods inherited from class net.aifusion.metamodel.QualifiedElement
getQualifiers
-
Method Details
-
invokeMethod
Description copied from class:CimClassInvoke a method on this instance- Overrides:
invokeMethodin 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:CimStructureSet the value of a property in this structure- Overrides:
setPropertyValuein classCimStructure- Parameters:
propertyName- - name of the propertypropertyValue- - value to be set in the property
-
addListener
Description copied from interface:CimEventGeneratorAdd a listener to this generator- Specified by:
addListenerin interfaceCimEventGenerator- Overrides:
addListenerin 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:CimEventGeneratorRemove a listener from this generator- Specified by:
removeListenerin interfaceCimEventGenerator- Overrides:
removeListenerin 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()
-