|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biomoby.shared.MobyData
org.biomoby.shared.MobyPrimaryData
org.biomoby.shared.MobyPrimaryDataSimple
org.biomoby.shared.data.MobyDataObject
org.biomoby.shared.data.MobyDataObjectVector
public class MobyDataObjectVector
This class is primarily intended for use by MobyDataComposite to represent Object members in the HAS (1-to-many) relationship. Not all MobyDataObject behaviours are well defined for this object, but should rather be called on its members. If you are looking to represent a MOBY XML Collection please see MobyDataObjectSet.
| Field Summary |
|---|
| Fields inherited from interface org.biomoby.shared.data.MobyDataInstance |
|---|
CENTRAL_XML_MODE, SERVICE_XML_MODE |
| Constructor Summary | |
|---|---|
MobyDataObjectVector(String name)
Builds a vector with an initial capacity of 5. |
|
MobyDataObjectVector(String name,
int initialCapacity)
|
|
MobyDataObjectVector(String name,
int initialCapacity,
Registry registry)
|
|
MobyDataObjectVector(String name,
Registry registry)
|
|
| Method Summary | ||
|---|---|---|
void |
add(int index,
MobyDataObject mdo)
Inserts the specified element at the specified position in this list. |
|
boolean |
add(MobyDataObject mdo)
Add an object to the list. |
|
boolean |
addAll(Collection<? extends MobyDataObject> c)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator. |
|
boolean |
addAll(int index,
Collection<? extends MobyDataObject> c)
Inserts all of the elements in the specified collection into this list at the specified position. |
|
void |
clear()
Removes all of the elements from this list. |
|
boolean |
contains(Object o)
Returns true if this list contains the specified element. |
|
boolean |
containsAll(Collection c)
Returns true if this list contains all of the elements of the specified collection. |
|
boolean |
equals(Object o)
Compares the specified object with this list for equality. |
|
MobyDataObject |
get(int index)
Returns the element at the specified position in this list. |
|
int |
hashCode()
Returns the hash code value for this list. |
|
int |
indexOf(Object o)
Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. |
|
boolean |
isEmpty()
|
|
Iterator<MobyDataObject> |
iterator()
Returns an iterator over the elements in this list in proper sequence. |
|
int |
lastIndexOf(Object o)
Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element. |
|
ListIterator<MobyDataObject> |
listIterator()
Returns a list iterator of the elements in this list (in proper sequence). |
|
ListIterator<MobyDataObject> |
listIterator(int index)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. |
|
MobyDataObject |
remove(int index)
Removes the element at the specified position in this list (optional operation). |
|
boolean |
remove(Object o)
Removes the first occurrence in this list of the specified element. |
|
boolean |
removeAll(Collection c)
Removes from this list all the elements that are contained in the specified collection. |
|
boolean |
retainAll(Collection c)
Retains only the elements in this list that are contained in the specified collection (optional operation). |
|
MobyDataObject |
set(int index,
MobyDataObject element)
Replaces the element at the specified position in this list with the specified element (optional operation). |
|
int |
size()
Returns the number of elements in this list. |
|
List<MobyDataObject> |
subList(int fromIndex,
int toIndex)
Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. |
|
Object[] |
toArray()
Returns an array containing all of the elements in this list in proper sequence. |
|
|
toArray(T[] a)
|
|
String |
toXML()
Produces a full-blown XML fragment that depending on the value of getXmlMode() is either a template for use in MOBY Central services, or a Simple element for use in calling a service instance. |
|
| Methods inherited from class org.biomoby.shared.data.MobyDataObject |
|---|
addCrossReference, addCrossReferences, addCrossReferences, addProvisionInfo, clone, compareTo, createInstanceFromDOM, createInstanceFromDOM, createInstanceFromString, createInstanceFromString, createInstanceFromXML, getCrossReferences, getId, getName, getObject, getPrimaryNamespace, getProvisionInfo, getTextContents, getValue, getXmlMode, hasCrossReferences, setId, setName, setPrimaryNamespace, setProvisionInfo, setXmlMode, toString |
| Methods inherited from class org.biomoby.shared.MobyPrimaryDataSimple |
|---|
addNamespace, format, getDataType, getNamespaces, removeNamespace, removeNamespace, setDataType, setNamespaces |
| Methods inherited from class org.biomoby.shared.MobyPrimaryData |
|---|
isPrimary |
| Methods inherited from class org.biomoby.shared.MobyData |
|---|
getId, getName, getUserData, setUserData |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biomoby.shared.data.MobyDataInstance |
|---|
getName, getUserData, setUserData |
| Constructor Detail |
|---|
public MobyDataObjectVector(String name)
public MobyDataObjectVector(String name,
Registry registry)
public MobyDataObjectVector(String name,
int initialCapacity)
public MobyDataObjectVector(String name,
int initialCapacity,
Registry registry)
| Method Detail |
|---|
public String toXML()
MobyDataObject
toXML in interface MobyDataInstancetoXML in class MobyDataObjectpublic boolean add(MobyDataObject mdo)
add in interface Collection<MobyDataObject>add in interface List<MobyDataObject>
public void add(int index,
MobyDataObject mdo)
add in interface List<MobyDataObject>public boolean addAll(Collection<? extends MobyDataObject> c)
addAll in interface Collection<MobyDataObject>addAll in interface List<MobyDataObject>
public boolean addAll(int index,
Collection<? extends MobyDataObject> c)
addAll in interface List<MobyDataObject>public void clear()
clear in interface Collection<MobyDataObject>clear in interface List<MobyDataObject>public boolean contains(Object o)
contains in interface Collection<MobyDataObject>contains in interface List<MobyDataObject>public boolean containsAll(Collection c)
containsAll in interface Collection<MobyDataObject>containsAll in interface List<MobyDataObject>public boolean equals(Object o)
equals in interface Collection<MobyDataObject>equals in interface List<MobyDataObject>equals in class MobyDataObjectpublic MobyDataObject get(int index)
get in interface List<MobyDataObject>public int hashCode()
hashCode in interface Collection<MobyDataObject>hashCode in interface List<MobyDataObject>hashCode in class Objectpublic int indexOf(Object o)
indexOf in interface List<MobyDataObject>public boolean isEmpty()
isEmpty in interface Collection<MobyDataObject>isEmpty in interface List<MobyDataObject>public Iterator<MobyDataObject> iterator()
iterator in interface Iterable<MobyDataObject>iterator in interface Collection<MobyDataObject>iterator in interface List<MobyDataObject>public int lastIndexOf(Object o)
lastIndexOf in interface List<MobyDataObject>public ListIterator<MobyDataObject> listIterator()
listIterator in interface List<MobyDataObject>public ListIterator<MobyDataObject> listIterator(int index)
listIterator in interface List<MobyDataObject>public MobyDataObject remove(int index)
remove in interface List<MobyDataObject>public boolean remove(Object o)
remove in interface Collection<MobyDataObject>remove in interface List<MobyDataObject>public boolean removeAll(Collection c)
removeAll in interface Collection<MobyDataObject>removeAll in interface List<MobyDataObject>public boolean retainAll(Collection c)
retainAll in interface Collection<MobyDataObject>retainAll in interface List<MobyDataObject>
public MobyDataObject set(int index,
MobyDataObject element)
set in interface List<MobyDataObject>public int size()
size in interface Collection<MobyDataObject>size in interface List<MobyDataObject>
public List<MobyDataObject> subList(int fromIndex,
int toIndex)
subList in interface List<MobyDataObject>public Object[] toArray()
toArray in interface Collection<MobyDataObject>toArray in interface List<MobyDataObject>
public <T> T[] toArray(T[] a)
throws ClassCastException
toArray in interface Collection<MobyDataObject>toArray in interface List<MobyDataObject>ClassCastException
|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||