com.sapportals.portal.navigation

Class NavigationNodes

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by com.sapportals.portal.navigation.NavigationNodes
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class NavigationNodes
extends ArrayList

The class that implements an array list implementation for maintaining navigation node instances. Ensures that each element in the array is a navigation node.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NavigationNodes()
           
 
Method Summary
 boolean add(INavigationNode node)
          Adds a navigation node.
 void add(int index, Object element)
          Adds a navigation node to the specified location.
 boolean add(Object element)
          Adds a navigation node.
 List getNamesList()
          Gets a list of navigation node names.
 
Methods inherited from class java.util.ArrayList
addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

NavigationNodes

public NavigationNodes()
Method Detail

add

public boolean add(Object element)
Adds a navigation node. Overrides the add method to ensure only INavigationNode elements are added.

Specified by:
add in interface Collection
Specified by:
add in interface List
Overrides:
add in class ArrayList
Parameters:
element - a navigation node to add
Returns:
true if the add operation succeeded, false if the operation failed

add

public void add(int index,
                Object element)
Adds a navigation node to the specified location. Overrides the add method to ensure only INavigationNode elements are added.

Specified by:
add in interface List
Overrides:
add in class ArrayList
Parameters:
index - a location to add the navigation node
element - a navigation node to add

add

public boolean add(INavigationNode node)
Adds a navigation node.

Parameters:
node - a navigation node
Returns:
true if the add operation succeeded, false if the operation failed

getNamesList

public List getNamesList()
Gets a list of navigation node names.

Returns:
a list of navigation node names
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/navigation/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice