Package com.altova.automation.XMLSpy
Class ElementList
java.lang.Object
com.altova.automation.libs.COMIUnknownObject
com.altova.automation.libs.COMIDispatchObject
com.altova.automation.XMLSpy.ElementList
- All Implemented Interfaces:
COMIDispatchConstList<ElementListItem>,COMIDispatchList<ElementListItem>,java.lang.Iterable<ElementListItem>
public class ElementList extends COMIDispatchObject implements COMIDispatchList<ElementListItem>
-
Field Summary
Fields inherited from class com.altova.automation.libs.COMIDispatchObject
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF -
Method Summary
Modifier and Type Method Description java.lang.Objectget_NewEnum()Not used in this context.intgetCount()GUIDgetInterfaceIID()ElementListItemgetItem(int n)java.util.Iterator<ElementListItem>iterator()voidremoveElement(int Index)RemoveElement removes the element Index from the collection.Methods inherited from class com.altova.automation.libs.COMIDispatchObject
addListener, getProperty, getProperty, invoke, removeListener, setProperty, setPropertyMethods inherited from class com.altova.automation.libs.COMIUnknownObject
dispose, equals, getCOMInterfacePointer, isNull
-
Method Details
-
getInterfaceIID
-
getCount
- Specified by:
getCountin interfaceCOMIDispatchConstList<ElementListItem>- Returns:
- number of elements in the list.
- Throws:
AutomationException- on COM error.
-
getItem
- Specified by:
getItemin interfaceCOMIDispatchConstList<ElementListItem>- Parameters:
n- get element at specified index. COM lists typically are 1-based!- Returns:
- element at index
- Throws:
AutomationException- on COM error
-
get_NewEnum
Description copied from interface:COMIDispatchConstListNot used in this context. Lists get iterated based on indices.- Specified by:
get_NewEnumin interfaceCOMIDispatchConstList<ElementListItem>- Returns:
- COM enumerator for the list.
- Throws:
AutomationException- on COM error
-
removeElement
RemoveElement removes the element Index from the collection.- Specified by:
removeElementin interfaceCOMIDispatchList<ElementListItem>- Parameters:
Index- index of the element. COM lists are typically 1-based.- Throws:
AutomationException- on COM error
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<ElementListItem>
-