Interface ComConstants
-
- All Known Implementing Classes:
Constants
public interface ComConstants
Represents the ecu.test specific COMConstants API.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getCount
int getCount() throws ETComException
Queries the number of constants.- Returns:
- the number of constants
- Throws:
ETComException
- in case of a COM exception
-
item
ComConstant item(int id) throws ETComException
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 withgetCount()
.- Parameters:
id
- the id of the constant- Returns:
- the specified constant
- Throws:
ETComException
- in case of a COM exception
-
item
ComConstant item(String name) throws ETComException
Returns a specified constant by name.- Parameters:
name
- the name of the constant- Returns:
- the specified constant
- Throws:
ETComException
- in case of a COM exception
-
-