|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.commonTypes.Describable
org.LexGrid.relations.Relations
public class Relations
A collection of relations that represent a particular point of view or community.
Constructor Summary | |
---|---|
Relations()
|
Method Summary | |
---|---|
void |
addAssociation(Association vAssociation)
|
void |
addAssociation(int index,
Association vAssociation)
|
void |
addSource(int index,
Source vSource)
|
void |
addSource(Source vSource)
|
java.util.Enumeration<Association> |
enumerateAssociation()
Method enumerateAssociation. |
java.util.Enumeration<Source> |
enumerateSource()
Method enumerateSource. |
Association[] |
getAssociation()
Method getAssociation.Returns the contents of the collection in an Array. |
Association |
getAssociation(int index)
Method getAssociation. |
int |
getAssociationCount()
Method getAssociationCount. |
java.lang.String |
getContainerName()
Returns the value of field 'containerName'. |
java.lang.Boolean |
getIsNative()
Returns the value of field 'isNative'. |
Source[] |
getSource()
Method getSource.Returns the contents of the collection in an Array. |
Source |
getSource(int index)
Method getSource. |
int |
getSourceCount()
Method getSourceCount. |
java.lang.Boolean |
isIsNative()
Returns the value of field 'isNative'. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<Association> |
iterateAssociation()
Method iterateAssociation. |
java.util.Iterator<Source> |
iterateSource()
Method iterateSource. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllAssociation()
|
void |
removeAllSource()
|
boolean |
removeAssociation(Association vAssociation)
Method removeAssociation. |
Association |
removeAssociationAt(int index)
Method removeAssociationAt. |
boolean |
removeSource(Source vSource)
Method removeSource. |
Source |
removeSourceAt(int index)
Method removeSourceAt. |
void |
setAssociation(Association[] vAssociationArray)
|
void |
setAssociation(int index,
Association vAssociation)
|
void |
setContainerName(java.lang.String containerName)
Sets the value of field 'containerName'. |
void |
setIsNative(java.lang.Boolean isNative)
Sets the value of field 'isNative'. |
void |
setSource(int index,
Source vSource)
|
void |
setSource(Source[] vSourceArray)
|
static Relations |
unmarshalRelations(java.io.Reader reader)
Method unmarshalRelations. |
void |
validate()
|
Methods inherited from class org.LexGrid.commonTypes.Describable |
---|
getEntityDescription, setEntityDescription, unmarshalDescribable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Relations()
Method Detail |
---|
public void addAssociation(Association vAssociation) throws java.lang.IndexOutOfBoundsException
vAssociation
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addAssociation(int index, Association vAssociation) throws java.lang.IndexOutOfBoundsException
index
- vAssociation
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSource(Source vSource) throws java.lang.IndexOutOfBoundsException
vSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSource(int index, Source vSource) throws java.lang.IndexOutOfBoundsException
index
- vSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<Association> enumerateAssociation()
public java.util.Enumeration<Source> enumerateSource()
public Association getAssociation(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Association[] getAssociation()
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 int getAssociationCount()
public java.lang.String getContainerName()
public java.lang.Boolean getIsNative()
public Source getSource(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Source[] getSource()
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 int getSourceCount()
public java.lang.Boolean isIsNative()
public boolean isValid()
isValid
in class Describable
public java.util.Iterator<Association> iterateAssociation()
public java.util.Iterator<Source> iterateSource()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
marshal
in class Describable
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
marshal
in class Describable
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 removeAllAssociation()
public void removeAllSource()
public boolean removeAssociation(Association vAssociation)
vAssociation
-
public Association removeAssociationAt(int index)
index
-
public boolean removeSource(Source vSource)
vSource
-
public Source removeSourceAt(int index)
index
-
public void setAssociation(int index, Association vAssociation) throws java.lang.IndexOutOfBoundsException
index
- vAssociation
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setAssociation(Association[] vAssociationArray)
vAssociationArray
- public void setContainerName(java.lang.String containerName)
containerName
- the value of field 'containerName'.public void setIsNative(java.lang.Boolean isNative)
isNative
- the value of field 'isNative'.public void setSource(int index, Source vSource) throws java.lang.IndexOutOfBoundsException
index
- vSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSource(Source[] vSourceArray)
vSourceArray
- public static Relations unmarshalRelations(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
validate
in class Describable
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 |