|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mayo.edu.lgModel.LexGridBase
org.LexGrid.REST.relations.RelationsDirectory
public class RelationsDirectory
Class RelationsDirectory.
Constructor Summary | |
---|---|
RelationsDirectory()
|
Method Summary | |
---|---|
void |
addRelation(int index,
Relation vRelation)
|
void |
addRelation(Relation vRelation)
|
java.util.Enumeration<? extends Relation> |
enumerateRelation()
Method enumerateRelation. |
Continuation |
getContinuation()
Returns the value of field 'continuation'. |
Relation[] |
getRelation()
Method getRelation.Returns the contents of the collection in an Array. |
Relation |
getRelation(int index)
Method getRelation. |
java.util.List<Relation> |
getRelationAsReference()
Method getRelationAsReference.Returns a reference to '_relationList'. |
int |
getRelationCount()
Method getRelationCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Relation> |
iterateRelation()
Method iterateRelation. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllRelation()
|
boolean |
removeRelation(Relation vRelation)
Method removeRelation. |
Relation |
removeRelationAt(int index)
Method removeRelationAt. |
void |
setContinuation(Continuation continuation)
Sets the value of field 'continuation'. |
void |
setRelation(int index,
Relation vRelation)
|
void |
setRelation(java.util.List<Relation> vRelationList)
Sets the value of '_relationList' by copying the given Vector. |
void |
setRelation(Relation[] vRelationArray)
|
void |
setRelationAsReference(java.util.List<Relation> relationList)
Deprecated. |
static RelationsDirectory |
unmarshalRelationsDirectory(java.io.Reader reader)
Method unmarshalRelationsDirectory. |
void |
validate()
|
Methods inherited from class org.mayo.edu.lgModel.LexGridBase |
---|
getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelationsDirectory()
Method Detail |
---|
public void addRelation(Relation vRelation) throws java.lang.IndexOutOfBoundsException
vRelation
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addRelation(int index, Relation vRelation) throws java.lang.IndexOutOfBoundsException
index
- vRelation
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Relation> enumerateRelation()
public Continuation getContinuation()
public Relation getRelation(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Relation[] getRelation()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public java.util.List<Relation> getRelationAsReference()
public int getRelationCount()
public boolean isValid()
public java.util.Iterator<? extends Relation> iterateRelation()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
java.io.IOException
- if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllRelation()
public boolean removeRelation(Relation vRelation)
vRelation
-
public Relation removeRelationAt(int index)
index
-
public void setContinuation(Continuation continuation)
continuation
- the value of field 'continuation'.public void setRelation(int index, Relation vRelation) throws java.lang.IndexOutOfBoundsException
index
- vRelation
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setRelation(Relation[] vRelationArray)
vRelationArray
- public void setRelation(java.util.List<Relation> vRelationList)
vRelationList
- the Vector to copy.public void setRelationAsReference(java.util.List<Relation> relationList)
relationList
- the Vector to set.public static RelationsDirectory unmarshalRelationsDirectory(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |