|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
nesstar.rdf.RDFList
public class RDFList
A list of RDF objects. It provides mutable List interface on top of a bag.
| 10 July 2002 the toString() method causes a lookup for each object from the list, resulting in a quick and uncontrolled series of remote bean lookups, each time going through NEOOM2EJBServlet/BrigdeBean. This causes Tomcat to run out of available Threads before it has a chance to return the objects. |
| Method Summary | |
|---|---|
void |
add(int index,
Object element)
Inserts the specified element at the specified position in this list Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). |
void |
clear()
Removes all the elements in the bag. |
Object |
get(int index)
Method |
RDFBag |
getBag()
|
URL |
getID()
|
static RDFList |
getList(RDFBag bag)
Gets the list attribute of the RDFList class |
static RDFList |
getList(RDFRef ref)
|
void |
reload()
Reload the underlying Bag |
Object |
remove(int index)
Removes the element at the specified position in this list. |
Object |
set(int index,
Object element)
Replaces the element at the specified position in this list with the specified element |
int |
size()
Method |
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, 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 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Method Detail |
|---|
public RDFBag getBag()
public URL getID()
public Object set(int index,
Object element)
set in interface Listset in class AbstractListindex - - index of element to replace.element - - element to be stored at the
specified position.
ClassCastException - - if the specified element does not
inherits from RDFObject
IndexOutOfBoundsException - - if the specified index is out of
range (index < 0 || index >= size()).
public static RDFList getList(RDFRef ref)
throws Exception
ref - the reference to a bag that represents a 1 to N relationship
Exception
public static RDFList getList(RDFBag bag)
throws Exception
bag -
Exceptionpublic Object get(int index)
get in interface Listget in class AbstractListindex -
public void reload()
throws Exception
Exceptionpublic int size()
size in interface Collectionsize in interface Listsize in class AbstractCollection
public void add(int index,
Object element)
add in interface Listadd in class AbstractListindex - index at which the specified element
is to be inserted.element - element to be inserted.
ClassCastException - - if the specified element does not
inherits from RDFObject
IndexOutOfBoundsException - - if the specified index is out of
range (index < 0 || index >= size()).public Object remove(int index)
remove in interface Listremove in class AbstractListindex - - the index of the element to remove.
public void clear()
clear in interface Collectionclear in interface Listclear in class AbstractList
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||