Class Constant
- 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.AbstractTestObject
-
- de.tracetronic.jenkins.plugins.ecutest.wrapper.com.Constant
-
- All Implemented Interfaces:
ComConstant
,AutoCloseable
public class Constant extends AbstractTestObject implements ComConstant
COM object giving access to the properties of a constant.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Queries the test object description.String
getName()
Queries the test object name.String
getValue()
Queries the constant value.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.wrapper.com.AbstractTestObject
check, checkNG
-
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
-
Constant
public Constant(com.jacob.com.Dispatch dispatch, boolean useTimeout)
Instantiates a newConstant
.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
-
getName
public String getName() throws ETComException
Description copied from class:AbstractTestObject
Queries the test object name.- Specified by:
getName
in interfaceComConstant
- Overrides:
getName
in classAbstractTestObject
- Returns:
- the name of this test object
- Throws:
ETComException
- in case of a COM exception
-
getDescription
public String getDescription() throws ETComException
Description copied from class:AbstractTestObject
Queries the test object description.- Specified by:
getDescription
in interfaceComConstant
- Specified by:
getDescription
in classAbstractTestObject
- Returns:
- the description of this test object
- Throws:
ETComException
- in case of a COM exception
-
getValue
public String getValue() throws ETComException
Description copied from interface:ComConstant
Queries the constant value.- Specified by:
getValue
in interfaceComConstant
- Returns:
- the value of this constant
- Throws:
ETComException
- in case of a COM exception
-
-