|
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.MobyPrimaryDataSet
org.biomoby.shared.data.MobyDataObjectSet
org.biomoby.shared.data.MobyDataObjectSetSAI
public class MobyDataObjectSetSAI
A convenience class that just associates a set of possible services to run with a data collection. It shadows all of the normal MobyDataObjectSet methods, passing them through to the data instance given in the constructor. This is done rather than unnecessarily cloning potentially large objects. NOTA BENE: This object does not clone the MOBY data passed in, therefore any changes you make to the original MOBY data collection later will be reflected here! If you want this object to retain its own copy (e.g. in an intialization loop) call the constructor like this: new MobyDataObjectSetSAI((MobyDataObjectSet) data.clone(), ...)
| Field Summary |
|---|
| Fields inherited from interface org.biomoby.shared.data.MobyDataInstance |
|---|
CENTRAL_XML_MODE, SERVICE_XML_MODE |
| Constructor Summary | |
|---|---|
MobyDataObjectSetSAI(MobyDataObjectSet collection,
MobyService[] services)
Constructor that takes an existing object and associates services with it. |
|
MobyDataObjectSetSAI(String name,
MobyService[] services)
Constructor for base Objects. |
|
MobyDataObjectSetSAI(String name,
MobyService[] services,
Registry registry)
|
|
| Method Summary | ||
|---|---|---|
boolean |
add(MobyDataObject mdsi)
Add a single MobyDataObject to the collection. |
|
boolean |
addAll(Collection<? extends MobyDataObject> c)
Convenient way to add the input collection of MobyDataObjects (usually a MobyDataObjectSet, or a Vector of MobyDataObjects) to this collection. |
|
void |
addNamespace(MobyNamespace ns)
Add given namespace of all elements of this collection. |
|
void |
clear()
Removes all of the MobyDataObject elements from this collection. |
|
boolean |
contains(Object mdsi)
|
|
boolean |
containsAll(Collection c)
|
|
boolean |
equals(Object set)
Compare two MobyDataObject collections. |
|
MobyDataType |
getDataType()
Return the least upper bound parent class of all items in the collection. |
|
MobyDataObject[] |
getElementInstances()
|
|
MobyPrimaryDataSimple[] |
getElements()
|
|
String |
getId()
|
|
MobyNamespace[] |
getNamespaces()
Return namespaces that occur in all items of the collection. |
|
Object |
getObject()
Each implementer will return the underlying Java object used to store the MOBY value. |
|
MobyService[] |
getServices()
|
|
Object |
getUserData()
Retrieves any application-specific data that may have been stored in association with this Moby object. |
|
int |
getXmlMode()
Report whether toXML will produce Central template or service call instance XML. |
|
int |
hashCode()
Implemented solely because of the general contract that c1.equals(c2) implies that c1.hashCode()==c2.hashCode() |
|
boolean |
isEmpty()
Logically equivalent to size() == 0. |
|
Iterator<MobyDataObject> |
iterator()
|
|
boolean |
remove(Object mdsi)
Removes a single instance of an element from this collection, if it satisfies mdsi.equals(). |
|
boolean |
removeAll(Collection c)
Set theory subtraction operator implementation. |
|
void |
removeNamespace(String namespaceName)
Remove given namespace (defined by its name) from all elements of this collection. |
|
boolean |
retainAll(Collection c)
Set theory intersection operator implementation. |
|
void |
setElements(MobyDataObject[] values)
Replace whatever is in the collection right now with the values in the input array. |
|
void |
setId(String value)
|
|
void |
setNamespaces(MobyNamespace[] values)
Set given namespaces of all elements of this collection. |
|
void |
setServices(MobyService[] services)
|
|
void |
setUserData(Object data)
Allows developers to track their application-specific information alongside the Moby functionality. |
|
void |
setXmlMode(int mode)
Determined whether toXML will return a Central template value or a service call instance value. |
|
int |
size()
|
|
Object[] |
toArray()
|
|
|
toArray(T[] classArray)
Don't use this method if at all possible. |
|
String |
toString()
|
|
String |
toXML()
Wraps the simple instances' XML in a MOBY Collection tag |
|
| Methods inherited from class org.biomoby.shared.data.MobyDataObjectSet |
|---|
clone, getChildren, removeNamespace |
| Methods inherited from class org.biomoby.shared.MobyPrimaryDataSet |
|---|
addElement, format, setDataType, setElements |
| Methods inherited from class org.biomoby.shared.MobyPrimaryData |
|---|
isPrimary |
| Methods inherited from class org.biomoby.shared.MobyData |
|---|
getName, setName |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.biomoby.shared.data.MobyDataInstance |
|---|
getName, setName |
| Constructor Detail |
|---|
public MobyDataObjectSetSAI(String name,
MobyService[] services)
public MobyDataObjectSetSAI(String name,
MobyService[] services,
Registry registry)
public MobyDataObjectSetSAI(MobyDataObjectSet collection,
MobyService[] services)
| Method Detail |
|---|
public MobyService[] getServices()
getServices in interface MobyDataServiceAssocInstancepublic MobyDataType getDataType()
MobyDataObjectSet
getDataType in class MobyDataObjectSetpublic void setServices(MobyService[] services)
setServices in interface MobyDataServiceAssocInstancepublic int getXmlMode()
MobyDataObjectSet
getXmlMode in interface MobyDataInstancegetXmlMode in class MobyDataObjectSet
public void setXmlMode(int mode)
throws IllegalArgumentException
MobyDataObjectSet
setXmlMode in interface MobyDataInstancesetXmlMode in class MobyDataObjectSetmode - one of MobyDataInstance.CENTRAL_XML_MODE or MobyDataInstance.SERVICE_XML_MODE
IllegalArgumentException - if the mode is not one of the specified valuespublic void setId(String value)
setId in class MobyDatapublic String getId()
getId in class MobyDatapublic void addNamespace(MobyNamespace ns)
MobyDataObjectSet
addNamespace in class MobyDataObjectSetpublic MobyNamespace[] getNamespaces()
MobyDataObjectSet
getNamespaces in class MobyDataObjectSetpublic void setNamespaces(MobyNamespace[] values)
MobyDataObjectSet
setNamespaces in class MobyDataObjectSetpublic void removeNamespace(String namespaceName)
MobyDataObjectSet
removeNamespace in class MobyDataObjectSet
public void setElements(MobyDataObject[] values)
throws NullPointerException
MobyDataObjectSet
setElements in class MobyDataObjectSetNullPointerException - if the input array is null, or contains null elementspublic MobyPrimaryDataSimple[] getElements()
getElements in class MobyDataObjectSetpublic Object getUserData()
MobyData
getUserData in interface MobyDataInstancegetUserData in class MobyDatapublic void setUserData(Object data)
MobyData
setUserData in interface MobyDataInstancesetUserData in class MobyDatapublic Object getObject()
MobyDataInstance
getObject in interface MobyDataInstancegetObject in class MobyDataObjectSet
public boolean add(MobyDataObject mdsi)
throws ClassCastException,
NullPointerException
MobyDataObjectSet
add in interface Collection<MobyDataObject>add in class MobyDataObjectSetNullPointerException - if the input is a null object
ClassCastException
public boolean addAll(Collection<? extends MobyDataObject> c)
throws ClassCastException,
NullPointerException
MobyDataObjectSet
addAll in interface Collection<MobyDataObject>addAll in class MobyDataObjectSetNullPointerException - if the collection or one of its members is a null object
ClassCastException
public boolean contains(Object mdsi)
throws ClassCastException,
NullPointerException
contains in interface Collection<MobyDataObject>contains in class MobyDataObjectSetClassCastException - if the input is not a MobyDataObject
NullPointerException - if the input is a null object
public boolean containsAll(Collection c)
throws ClassCastException,
NullPointerException
containsAll in interface Collection<MobyDataObject>containsAll in class MobyDataObjectSetClassCastException - if a member of the input collection is not a MobyDataObject
NullPointerException - if the collection or one of its members is a null object
public boolean equals(Object set)
throws ClassCastException,
NullPointerException
MobyDataObjectSet
equals in interface Collection<MobyDataObject>equals in class MobyDataObjectSetClassCastException - if the input is not a Collection of MobyDataObjects
NullPointerException - if the input is a null objectpublic int hashCode()
MobyDataObjectSet
hashCode in interface Collection<MobyDataObject>hashCode in class MobyDataObjectSetpublic void clear()
MobyDataObjectSet
clear in interface Collection<MobyDataObject>clear in class MobyDataObjectSetpublic boolean isEmpty()
MobyDataObjectSet
isEmpty in interface Collection<MobyDataObject>isEmpty in class MobyDataObjectSetpublic Iterator<MobyDataObject> iterator()
iterator in interface Iterable<MobyDataObject>iterator in interface Collection<MobyDataObject>iterator in class MobyDataObjectSet
public boolean remove(Object mdsi)
throws ClassCastException,
NullPointerException
MobyDataObjectSet
remove in interface Collection<MobyDataObject>remove in class MobyDataObjectSetmdsi - the MobyDataObject whose value equivalent (not object reference) is to be removed
ClassCastException - if the input is not a MobyDataObject
NullPointerException - if the input is a null object
public boolean removeAll(Collection c)
throws ClassCastException,
NullPointerException
MobyDataObjectSet
removeAll in interface Collection<MobyDataObject>removeAll in class MobyDataObjectSetClassCastException - if a member of the input collection is not a MobyDataObject
NullPointerException - if the collection or one of its members is a null objectpublic boolean retainAll(Collection c)
MobyDataObjectSet
retainAll in interface Collection<MobyDataObject>retainAll in class MobyDataObjectSetpublic Object[] toArray()
toArray in interface Collection<MobyDataObject>toArray in class MobyDataObjectSet
public <T> T[] toArray(T[] classArray)
throws ArrayStoreException,
NullPointerException
MobyDataObjectSet
toArray in interface Collection<MobyDataObject>toArray in class MobyDataObjectSetArrayStoreException
NullPointerExceptionpublic MobyDataObject[] getElementInstances()
getElementInstances in class MobyDataObjectSetpublic int size()
size in interface Collection<MobyDataObject>size in class MobyDataObjectSetpublic String toString()
toString in class MobyPrimaryDataSetpublic String toXML()
MobyDataObjectSet
toXML in interface MobyDataInstancetoXML in class MobyDataObjectSet
|
Version: 1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||