org.sblim.cimclient.internal.util
public class MOF extends Object
| Field Summary | |
|---|---|
| static String | ANY
ANY |
| static String | ASSOCIATION
ASSOCIATION |
| static String | CLASS
CLASS |
| static int | DEF_FLAVOR
OVERRIDABLE (true|false) 'true' -> DISABLEOVERRIDE=false TOSUBCLASS
(true|false) 'true' -> RESTRICTED=false TOINSTANCE (true|false) 'false'
TRANSLATABLE (true|false) 'false' -> TRANSLTE=false |
| static String | DISABLEOVERRIDE
DISABLEOVERRIDE |
| static String | DT_BOOL
DT_BOOL |
| static String | DT_CHAR16
DT_CHAR16 |
| static String | DT_DATETIME
DT_DATETIME |
| static String | DT_REAL32
DT_REAL32 |
| static String | DT_REAL64
DT_REAL64 |
| static String | DT_SINT16
DT_SINT16 |
| static String | DT_SINT32
DT_SINT32 |
| static String | DT_SINT64
DT_SINT64 |
| static String | DT_SINT8
DT_SINT8 |
| static String | DT_STR
DT_STR |
| static String | DT_UINT16
DT_UINT16 |
| static String | DT_UINT32
DT_UINT32 |
| static String | DT_UINT64
DT_UINT64 |
| static String | DT_UINT8
DT_UINT8 |
| static String | EMPTY
EMPTY |
| static String | ENABLEOVERRIDE
ENABLEOVERRIDE |
| static String | FALSE
FALSE |
| static String | INDENT
INDENT |
| static String | INDICATION
INDICATION |
| static String | INSTANCE
INSTANCE |
| static String | INSTOF
INSTOF |
| static String | INVALID
INVALID |
| static String | METHOD
METHOD |
| static String | NAMESPACE
NAMESPACE |
| static String | NULL
NULL |
| static String | PARAMETER
PARAMETER |
| static String | PROPERTY
PROPERTY |
| static String | QUALIFIER
QUALIFIER |
| static String | REF
REF |
| static String | REFERENCE
REFERENCE |
| static String | RESTRICTED
RESTRICTED |
| static String | SCOPE
SCOPE |
| static String | TOSUBCLASS
TOSUBCLASS |
| static String | TRANSLATABLE
TRANSLATABLE |
| static String | TRUE
TRUE |
| Method Summary | |
|---|---|
| static String | classDeclaration(CIMClass pCl, String pInd)
classDeclaration = [ qualifierList ] CLASS className [ superClass ]
"{" *classFeature "}" ";"
classFeature = propertyDeclaration | methodDeclaration
superClass = ":" className
|
| static String | constantValue(CIMValuedElement pValuedElement, String pInd)constantValue = integerValue | realValue | charValue | stringValue | booleanValue | nullValue // | dateTimeValue | objectHandle |
| static String | constantValue(Object pObj, boolean pTyped, String pInd)
constantValue
|
| static String | constantValue(Object pObj, String pInd)
constantValue
|
| static String | dataType(CIMDataType pType)dataType = DT_UINT8 | DT_SINT8 | DT_UINT16 | DT_SINT16 | DT_UINT32 | DT_SINT32 | DT_UINT64 | DT_SINT64 | DT_REAL32 | DT_REAL64 | DT_CHAR16 | DT_STR | DT_BOOL | DT_DATETIMEAdditionally it handles reference types too. |
| static String | dataType(CIMTypedElement pTypedElement) |
| static String | flavor(int flavor)flavor = ENABLEOVERRIDE | DISABLEOVERRIDE | RESTRICTED | TOSUBCLASS | TRANSLATABLE |
| static String | instanceDeclaration(CIMInstance pInst, String pInd)
instanceDeclaration = [ qualifierList ] INSTANCE OF className [ alias ]
"{" 1*valueInitializer "}" ";"
|
| static String | methodDeclaration(CIMMethod pMethod, String pInd)
methodDeclaration = [ qualifierList ] dataType methodName
"(" [ parameterList ] ")" ";"
|
| static String | objectHandle(CIMObjectPath pPath)
objectHandle
|
| static String | objectHandle(CIMObjectPath pPath, boolean pTyped, boolean pLocal)
objectHandle
|
| static String | objectHandleAsRef(CIMObjectPath pPath)
objectHandleAsRef
|
| static String | objectHandleAsRef(CIMObjectPath pPath, boolean pTyped)
objectHandleAsRef
|
| static String | parameter(CIMParameter pParam, String pInd)
parameter
|
| static String | propertyDeclaration(CIMProperty pProp, String pInd)
propertyDeclaration = typedElement [ defaultValue ] ";"
defaultValue = "=" initializer
|
| static String | qualifier(CIMQualifier pQuali)
qualifier = qualifierName [ qualifierParameter ] [ ":" 1*flavor ]
|
| static String | qualifierDeclaration(CIMQualifierType pQType)
qualifierDeclaration = QUALIFIER qualifierName qualifierType scope
[ defaultFlavor ] ";"
|
| static String | qualifierList(CIMElement pElement, String pInd)
qualifierList = "[" qualifier *( "," qualifier ) "]"
|
| static String | scope(int pScopes)
scope = "," SCOPE "(" metaElement *( "," metaElement ) ")"
metaElement = CLASS | ASSOCIATION | INDICATION | QUALIFIER
PROPERTY | REFERENCE | METHOD | PARAMETER | ANY
|
| static String | typedElement(CIMTypedElement pTypedElement, String pInd)
typedElement = [ qualifierList ] (dataType|objectRef) parameterName [
array ]
|
| static String | valuedElement(CIMValuedElement pValuedElement, String pInd)
valuedElement = typedElement [ defaultValue ] ";"
defaultValue = "=" initializer
|
| static String | valueInitializer(CIMProperty pProp, String pInd)
valueInitializer = [ qualifierList ] ( propertyName | referenceName ) "="
initializer ";"
|
classDeclaration = [ qualifierList ] CLASS className [ superClass ]
"{" *classFeature "}" ";"
classFeature = propertyDeclaration | methodDeclaration
superClass = ":" className
Parameters: pCl pInd
Returns: the MOF string
constantValue = integerValue | realValue | charValue | stringValue | booleanValue | nullValue // | dateTimeValue | objectHandle
Parameters: pValuedElement pInd
Returns: the MOF string
Parameters: pObj pInd
Returns: the untyped MOF String
dataType = DT_UINT8 | DT_SINT8 | DT_UINT16 | DT_SINT16 | DT_UINT32 | DT_SINT32 | DT_UINT64 | DT_SINT64 | DT_REAL32 | DT_REAL64 | DT_CHAR16 | DT_STR | DT_BOOL | DT_DATETIMEAdditionally it handles reference types too.
objectType = objectRef
objectRef = className REF
Parameters: pType
Returns: the MOF string
flavor = ENABLEOVERRIDE | DISABLEOVERRIDE | RESTRICTED | TOSUBCLASS | TRANSLATABLE
Parameters: flavor
Returns: the MOF string
Parameters: pInst pInd
Returns: the MOF string
methodDeclaration = [ qualifierList ] dataType methodName
"(" [ parameterList ] ")" ";"
Parameters: pMethod pInd
Returns: the MOF string
Parameters: pPath
Returns: the Untyped MOF String
Parameters: pPath The path pTyped If true the URI is typed pLocal If true the path is local (omitting scheme, host and port)
Returns: the URI string
Parameters: pPath
Returns: the Untyped MOF String
Parameters: pPath pTyped
Returns: the MOF String
Parameters: pParam - CIMParameter pInd
Returns: the MOF string
propertyDeclaration = typedElement [ defaultValue ] ";"
defaultValue = "=" initializer
Parameters: pProp pInd
Returns: the MOF string
qualifier = qualifierName [ qualifierParameter ] [ ":" 1*flavor ]
Parameters: pQuali
Returns: the MOF string
qualifierDeclaration = QUALIFIER qualifierName qualifierType scope
[ defaultFlavor ] ";"
Parameters: pQType
Returns: the MOF string
qualifierList = "[" qualifier *( "," qualifier ) "]"
Parameters: pElement pInd
Returns: the MOF string +newLine if qualifiers present or empty string
scope = "," SCOPE "(" metaElement *( "," metaElement ) ")"
metaElement = CLASS | ASSOCIATION | INDICATION | QUALIFIER
PROPERTY | REFERENCE | METHOD | PARAMETER | ANY
Parameters: pScopes
Returns: the MOF string
Parameters: pTypedElement pInd
Returns: the MOF string
valuedElement = typedElement [ defaultValue ] ";"
defaultValue = "=" initializer
Parameters: pValuedElement pInd
Returns: the MOF string
valueInitializer = [ qualifierList ] ( propertyName | referenceName ) "="
initializer ";"
Parameters: pProp pInd
Returns: the MOF string