com.pepper.platform.program
Class SectionList

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.AbstractSequentialList
              extended by java.util.LinkedList
                  extended by com.pepper.platform.program.SectionList
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, Queue

public class SectionList
extends LinkedList

Linked list of Sections

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SectionList()
           
SectionList(com.pepper.platform.program.PageMgr pageMgr)
          Creates a new SectionList instance.
 
Method Summary
 void add(int index, Object section)
          Describe add method here.
 boolean add(Object section)
          Describe add method here.
 void addFirst(Object section)
          Describe addFirst method here.
 void addLast(Object section)
          Describe addLast method here.
 void clear()
           
 boolean contains(Object object)
           
 int getIndex(String sectionId)
          Find the index of the specified section
 Section getSection(int index)
          Describe getSection method here.
 Section getSection(String sectionId)
          Find a section by id
 Section getSectionByName(String sectionName)
          Find a section by name.
 Object remove(int index)
           
 boolean remove(Object object)
           
 Object removeFirst()
           
 Object removeLast()
           
 String toString()
          Debug method to dump contents of Section to a String.
 
Methods inherited from class java.util.LinkedList
addAll, addAll, clone, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SectionList

public SectionList()

SectionList

public SectionList(com.pepper.platform.program.PageMgr pageMgr)
Creates a new SectionList instance.

Method Detail

getSection

public Section getSection(int index)
Describe getSection method here.

Parameters:
index - an int value
Returns:
a Section value

getSection

public Section getSection(String sectionId)
Find a section by id

Parameters:
sectionId - a String containing the id of the section to find.
Returns:
a Section value

getSectionByName

public Section getSectionByName(String sectionName)
Find a section by name.

Parameters:
sectionName - a String containing the id of the section to find.
Returns:
a Section value

getIndex

public int getIndex(String sectionId)
Find the index of the specified section

Parameters:
sectionId - a String value
Returns:
an int value

add

public boolean add(Object section)
Describe add method here.

Specified by:
add in interface Collection
Specified by:
add in interface List
Overrides:
add in class LinkedList
Parameters:
section - an Object value
Returns:
a boolean value

add

public void add(int index,
                Object section)
Describe add method here.

Specified by:
add in interface List
Overrides:
add in class LinkedList
Parameters:
index - an int value
section - an Object value

addFirst

public void addFirst(Object section)
Describe addFirst method here.

Overrides:
addFirst in class LinkedList
Parameters:
section - an Object value

addLast

public void addLast(Object section)
Describe addLast method here.

Overrides:
addLast in class LinkedList
Parameters:
section - an Object value

toString

public String toString()
Debug method to dump contents of Section to a String.

Overrides:
toString in class AbstractCollection

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List
Overrides:
clear in class LinkedList

remove

public Object remove(int index)
Specified by:
remove in interface List
Overrides:
remove in class LinkedList

remove

public boolean remove(Object object)
Specified by:
remove in interface Collection
Specified by:
remove in interface List
Overrides:
remove in class LinkedList

removeFirst

public Object removeFirst()
Overrides:
removeFirst in class LinkedList

removeLast

public Object removeLast()
Overrides:
removeLast in class LinkedList

contains

public boolean contains(Object object)
Specified by:
contains in interface Collection
Specified by:
contains in interface List
Overrides:
contains in class LinkedList


Copyright © 2006-2007 Pepper Computer, Inc. All Rights Reserved.