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
COM object giving access to all global constants of the currently loaded test configuration.
-
Field Summary
Fields inherited from class com.jacob.com.Dispatch
fdexNameCaseSensitive, Get, LOCALE_SYSTEM_DEFAULT, m_pDispatch, Method, Put, PutRef
-
Constructor Summary
Constructors -
Method Summary
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
Methods inherited from class com.jacob.com.JacobObject
debug, getBuildDate, getBuildVersion, isDebugEnabled
-
Constructor Details
-
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 Details
-
getCount
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
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
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
-