Class Constants
- java.lang.Object
-
- com.jacob.com.JacobObject
-
- com.jacob.com.Dispatch
-
- de.tracetronic.jenkins.plugins.ecutest.wrapper.com.ETComDispatch
-
- de.tracetronic.jenkins.plugins.ecutest.wrapper.com.Constants
-
- All Implemented Interfaces:
ComConstants
,AutoCloseable
public class Constants extends ETComDispatch implements ComConstants
COM object giving access to all global constants of the currently loaded test configuration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Queries the number of constants.ComConstant
item(int id)
Returns a specified constant by index.ComConstant
item(String name)
Returns a specified constant by name.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.wrapper.com.ETComDispatch
close, finalize, isAttached, performDirectRequest, performDirectRequest, performRequest, performRequest, performRequest, performRequest, useTimeout
-
Methods inherited from class com.jacob.com.Dispatch
call, call, call, call, callN, callN, callN_CaseSensitive, callSub, callSub, callSub, callSub, callSubN, callSubN, coCreateInstance, get, get, get_CaseSensitive, getActiveInstance, getIDOfName, getIDsOfNames, getIDsOfNames, getProgramId, hasExited, hasExited, invoke, invoke, invoke, invokeSub, invokeSub, invokeSub, invokeSubv, invokeSubv, invokeSubv, invokev, invokev, invokev, invokev, put, put, put_Casesensitive, putRef, putRef, QueryInterface, safeRelease
-
-
-
-
Constructor Detail
-
Constants
public Constants(com.jacob.com.Dispatch dispatch, boolean useTimeout)
Instantiates a newConstants
.This constructor is used instead of a case operation to turn a Dispatch object into a wider object - it must exist in every wrapper class whose instances may be returned from method calls wrapped in VT_DISPATCH Variants.
- Parameters:
dispatch
- the dispatchuseTimeout
- specifies whether to apply timeout
-
-
Method Detail
-
getCount
public int getCount() throws ETComException
Description copied from interface:ComConstants
Queries the number of constants.- Specified by:
getCount
in interfaceComConstants
- Returns:
- the number of constants
- Throws:
ETComException
- in case of a COM exception
-
item
public ComConstant item(int id) throws ETComException
Description copied from interface:ComConstants
Returns a specified constant by index. The index should be larger than 0 and lesser than the number of constants. The count of constants can be determined withComConstants.getCount()
.- Specified by:
item
in interfaceComConstants
- Parameters:
id
- the id of the constant- Returns:
- the specified constant
- Throws:
ETComException
- in case of a COM exception
-
item
public ComConstant item(String name) throws ETComException
Description copied from interface:ComConstants
Returns a specified constant by name.- Specified by:
item
in interfaceComConstants
- Parameters:
name
- the name of the constant- Returns:
- the specified constant
- Throws:
ETComException
- in case of a COM exception
-
-