|
|||||||||
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.concepts.Definitions
public class Definitions
Used to select all of the definitions from an entity. The URL is actually not linkable directly
Constructor Summary | |
---|---|
Definitions()
|
Method Summary | |
---|---|
void |
addDefinition(Definition vDefinition)
|
void |
addDefinition(int index,
Definition vDefinition)
|
java.util.Enumeration<? extends Definition> |
enumerateDefinition()
Method enumerateDefinition. |
Definition[] |
getDefinition()
Method getDefinition.Returns the contents of the collection in an Array. |
Definition |
getDefinition(int index)
Method getDefinition. |
java.util.List<Definition> |
getDefinitionAsReference()
Method getDefinitionAsReference.Returns a reference to '_definitionList'. |
int |
getDefinitionCount()
Method getDefinitionCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Definition> |
iterateDefinition()
Method iterateDefinition. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllDefinition()
|
boolean |
removeDefinition(Definition vDefinition)
Method removeDefinition. |
Definition |
removeDefinitionAt(int index)
Method removeDefinitionAt. |
void |
setDefinition(Definition[] vDefinitionArray)
|
void |
setDefinition(int index,
Definition vDefinition)
|
void |
setDefinition(java.util.List<Definition> vDefinitionList)
Sets the value of '_definitionList' by copying the given Vector. |
void |
setDefinitionAsReference(java.util.List<Definition> definitionList)
Deprecated. |
static Definitions |
unmarshalDefinitions(java.io.Reader reader)
Method unmarshalDefinitions. |
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 Definitions()
Method Detail |
---|
public void addDefinition(Definition vDefinition) throws java.lang.IndexOutOfBoundsException
vDefinition
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addDefinition(int index, Definition vDefinition) throws java.lang.IndexOutOfBoundsException
index
- vDefinition
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Definition> enumerateDefinition()
public Definition getDefinition(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Definition[] getDefinition()
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<Definition> getDefinitionAsReference()
public int getDefinitionCount()
public boolean isValid()
public java.util.Iterator<? extends Definition> iterateDefinition()
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 removeAllDefinition()
public boolean removeDefinition(Definition vDefinition)
vDefinition
-
public Definition removeDefinitionAt(int index)
index
-
public void setDefinition(int index, Definition vDefinition) throws java.lang.IndexOutOfBoundsException
index
- vDefinition
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setDefinition(Definition[] vDefinitionArray)
vDefinitionArray
- public void setDefinition(java.util.List<Definition> vDefinitionList)
vDefinitionList
- the Vector to copy.public void setDefinitionAsReference(java.util.List<Definition> definitionList)
definitionList
- the Vector to set.public static Definitions unmarshalDefinitions(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 |