Package org.jinterop.dcom.core

Examples of org.jinterop.dcom.core.JIString


            throw new IllegalArgumentException("Query language must be \"WQL\".");
        }
        if(flags != null && flags != 48) {
            throw new IllegalArgumentException("Flags must be 48.");
        }
        return callMethod(SWbemEventSource.class, "ExecNotificationQuery", new JIString(queryString),
                JIVariant.OPTIONAL_PARAM(), JIVariant.OPTIONAL_PARAM(),
                (objWbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objWbemNamedValueSet.getDispatch());
    }
View Full Code Here


                    iFlags += flag.getValue();
                }
            }
        }
        return callMethod(SWbemObjectSet.class, "ExecQuery",
                new JIString(queryString), JIVariant.OPTIONAL_PARAM(),
                (iFlags == null) ? JIVariant.OPTIONAL_PARAM() : iFlags,
                (objWbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objWbemNamedValueSet.getDispatch());
    }
View Full Code Here

                    iFlags += flag.getValue();
                }
            }
        }
        return callMethod(SWbemObject.class, "Get",
                StringUtils.isEmpty(objectPath) ? JIVariant.OPTIONAL_PARAM() : new JIString(objectPath),
                (iFlags == null) ? JIVariant.OPTIONAL_PARAM() : iFlags,
                (objWbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objWbemNamedValueSet.getDispatch());
    }
View Full Code Here

                    iFlags += flag.getValue();
                }
            }
        }
        return callMethod(SWbemObjectSet.class, "InstancesOf",
                new JIString(className),
                (iFlags == null) ? JIVariant.OPTIONAL_PARAM() : iFlags,
                (objWbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objWbemNamedValueSet.getDispatch());
    }
View Full Code Here

                } else {
                    iFlags += flag.getValue();
                }
            }
        }
        return callMethod(SWbemObjectSet.class, "ReferencesTo", new JIString(objectPath),
                (isEmpty(resultClass)) ? JIVariant.OPTIONAL_PARAM() : new JIString(resultClass),
                (isEmpty(role)) ? JIVariant.OPTIONAL_PARAM() : new JIString(role),
                (classesOnly == null) ? JIVariant.OPTIONAL_PARAM() : classesOnly,
                (schemaOnly == null) ? JIVariant.OPTIONAL_PARAM() : schemaOnly,
                (isEmpty(requiredQualifier)) ? JIVariant.OPTIONAL_PARAM() : new JIString(requiredQualifier),
                (iFlags == null) ? JIVariant.OPTIONAL_PARAM() : iFlags,
                (objWbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objWbemNamedValueSet.getDispatch());
    }
View Full Code Here

                    iFlags += flag.getValue();
                }
            }
        }
        return callMethod(SWbemObjectSet.class, "SubclassesOf",
                (isEmpty(superClass)) ? JIVariant.OPTIONAL_PARAM() : new JIString(superClass),
                (iFlags == null) ? JIVariant.OPTIONAL_PARAM() : iFlags,
                (objWbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objWbemNamedValueSet.getDispatch());
    }
View Full Code Here

     */
    public SWbemObject item(String objectPath) throws WMIException {
        if(StringUtils.isEmpty(objectPath)) {
            throw new IllegalArgumentException("Object path is empty.");
        }
        return callMethod(SWbemObject.class, "Item", new JIString(objectPath));
    }
View Full Code Here

     * @return If successful, returns an {@link SWbemPrivilege} object that represents the new privilege.
     * Otherwise, a null object is returned.
     * @throws WMIException
     */
    public SWbemPrivilege addAsString(WbemPrivilegeEnum privilege, Boolean enabled) throws WMIException {
        return callMethod(SWbemPrivilege.class, "AddAsString", new JIString(privilege.getStrValue()),
                enabled == null ? JIVariant.OPTIONAL_PARAM() : enabled);
    }
View Full Code Here

            throw new IllegalArgumentException("Qualifier value is null.");
        }
        if(flags != null && flags != 0) {
            throw new IllegalArgumentException("Flags must be zero.");
        }
        return callMethod(SWbemQualifier.class, "Add", new JIString(name), value.getVariant(),
                (propagatesToSubclasses == null) ? JIVariant.OPTIONAL_PARAM() : propagatesToSubclasses,
                (propagatesToInstances == null) ? JIVariant.OPTIONAL_PARAM() : propagatesToInstances,
                (overridable == null) ? JIVariant.OPTIONAL_PARAM() : overridable,
                JIVariant.OPTIONAL_PARAM());
    }
View Full Code Here

            throw new IllegalArgumentException("Property name is empty.");
        }
        if(flags != null && flags != 0) {
            throw new IllegalArgumentException("Flags must be zero.");
        }
        return callMethod(SWbemProperty.class, "Item", new JIString(name), JIVariant.OPTIONAL_PARAM());
    }
View Full Code Here

TOP

Related Classes of org.jinterop.dcom.core.JIString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.