helma.objectmodel.db
Class SegmentedSubnodeList

java.lang.Object
  extended by helma.objectmodel.db.SubnodeList
      extended by helma.objectmodel.db.SegmentedSubnodeList
All Implemented Interfaces:
java.io.Serializable

public class SegmentedSubnodeList
extends SubnodeList

See Also:
Serialized Form

Field Summary
 
Fields inherited from class helma.objectmodel.db.SubnodeList
lastSubnodeChange, lastSubnodeFetch, list, node
 
Constructor Summary
SegmentedSubnodeList(Node node)
          Creates a new subnode list
 
Method Summary
 void add(int index, NodeHandle handle)
          Adds the specified object to the list at the given position
 boolean add(NodeHandle handle)
          Adds the specified object to this list performing custom ordering
 boolean contains(java.lang.Object object)
           
 NodeHandle get(int index)
           
 int indexOf(java.lang.Object object)
           
 java.lang.Object remove(int index)
          remove the object specified by the given index-position
 boolean remove(java.lang.Object object)
          remove the given Object from this List
 int size()
          Return the size of the list.
 java.lang.Object[] toArray()
           
protected  void update()
           
 
Methods inherited from class helma.objectmodel.db.SubnodeList
getLastSubnodeChange, getNode, getSubnodeMapping, getSubnodeRelation, hasRelationalNodes, markAsChanged, prefetch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegmentedSubnodeList

public SegmentedSubnodeList(Node node)
Creates a new subnode list

Parameters:
node - the node we belong to
Method Detail

add

public boolean add(NodeHandle handle)
Adds the specified object to this list performing custom ordering

Overrides:
add in class SubnodeList
Parameters:
handle - element to be inserted.

add

public void add(int index,
                NodeHandle handle)
Adds the specified object to the list at the given position

Overrides:
add in class SubnodeList
Parameters:
index - the index to insert the element at
handle - the object to add

get

public NodeHandle get(int index)
Overrides:
get in class SubnodeList

contains

public boolean contains(java.lang.Object object)
Overrides:
contains in class SubnodeList

indexOf

public int indexOf(java.lang.Object object)
Overrides:
indexOf in class SubnodeList

remove

public java.lang.Object remove(int index)
remove the object specified by the given index-position

Overrides:
remove in class SubnodeList
Parameters:
index - the index-position of the NodeHandle to remove

remove

public boolean remove(java.lang.Object object)
remove the given Object from this List

Overrides:
remove in class SubnodeList
Parameters:
object - the NodeHandle to remove

toArray

public java.lang.Object[] toArray()
Overrides:
toArray in class SubnodeList

update

protected void update()
Overrides:
update in class SubnodeList

size

public int size()
Description copied from class: SubnodeList
Return the size of the list.

Overrides:
size in class SubnodeList
Returns:
the list size


Copyright © 1998-1998-${year} Helma.org. All Rights Reserved.