Jiffie: Java InterFace For Internet Explorer

net.sf.jiffie
Class EmptyElementList

Package class diagram package EmptyElementList
java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<IDispatch>
          extended by net.sf.jiffie.EmptyElementList
All Implemented Interfaces:
java.lang.Iterable<IDispatch>, java.util.Collection<IDispatch>, java.util.List<IDispatch>, ElementList, Releaseable

public final class EmptyElementList
extends java.util.AbstractList<IDispatch>
implements ElementList

This class represents an empty collection of IHTMLElements. New instances of this class should not be created (hence the private constructor). Instead references to the LIST member should be used where empty collections are required.


Field Summary
static EmptyElementList LIST
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Method Summary
 IDispatch get(int index)
          
 boolean isReleased()
          This method returns a boolean flag indicating if this object has already been released.
 IDispatch item(int index)
          This is a convenience method designed to emulate the behaviour of the item method of the IHTMLElementCollection interface.
 ElementList item(java.lang.String name)
          This is a convenience method designed to emulate the behaviour of the item method of the IHTMLElementCollection interface.
 void release()
          This method releases the COM object associated with this object.
 int size()
          
 ElementList tags(java.lang.String name)
          This is a convenience method designed to emulate the behaviour of the tags method of the IHTMLElementCollection interface.
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Field Detail

LIST

public static final EmptyElementList LIST
Method Detail

get

public IDispatch get(int index)

Specified by:
get in interface java.util.List<IDispatch>
Specified by:
get in class java.util.AbstractList<IDispatch>

size

public int size()

Specified by:
size in interface java.util.Collection<IDispatch>
Specified by:
size in interface java.util.List<IDispatch>
Specified by:
size in class java.util.AbstractCollection<IDispatch>

item

public IDispatch item(int index)
This is a convenience method designed to emulate the behaviour of the item method of the IHTMLElementCollection interface.

Specified by:
item in interface ElementList
Parameters:
index - zero based array index
Returns:
object at this index in the collection

item

public ElementList item(java.lang.String name)
This is a convenience method designed to emulate the behaviour of the item method of the IHTMLElementCollection interface.

Specified by:
item in interface ElementList
Parameters:
name - name or id attribute of a tag
Returns:
list of tags with id or name attributes matching the supplied value

tags

public ElementList tags(java.lang.String name)
This is a convenience method designed to emulate the behaviour of the tags method of the IHTMLElementCollection interface.

Specified by:
tags in interface ElementList
Parameters:
name - tag type name
Returns:
list of tags whose tage type matches the supplied value

release

public void release()
This method releases the COM object associated with this object.

Specified by:
release in interface Releaseable

isReleased

public boolean isReleased()
This method returns a boolean flag indicating if this object has already been released.

Specified by:
isReleased in interface Releaseable
Returns:
boolean flag


Copyright © 2004-2009 Packwood Software. All Rights Reserved.