|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.relations.AssociationSource
public class AssociationSource
An entity that occurs in one or more instances of a relation on the "from" (or left hand) side of a particular relation.
Constructor Summary | |
---|---|
AssociationSource()
|
Method Summary | |
---|---|
void |
addTarget(AssociationTarget vTarget)
|
void |
addTarget(int index,
AssociationTarget vTarget)
|
void |
addTargetData(AssociationData vTargetData)
|
void |
addTargetData(int index,
AssociationData vTargetData)
|
java.util.Enumeration<AssociationTarget> |
enumerateTarget()
Method enumerateTarget. |
java.util.Enumeration<AssociationData> |
enumerateTargetData()
Method enumerateTargetData. |
java.lang.Object |
getChoiceValue()
Returns the value of field 'choiceValue'. |
java.lang.String |
getSourceEntityCode()
Returns the value of field 'sourceEntityCode'. |
java.lang.String |
getSourceEntityCodeNamespace()
Returns the value of field 'sourceEntityCodeNamespace'. |
AssociationTarget[] |
getTarget()
Method getTarget.Returns the contents of the collection in an Array. |
AssociationTarget |
getTarget(int index)
Method getTarget. |
int |
getTargetCount()
Method getTargetCount. |
AssociationData[] |
getTargetData()
Method getTargetData.Returns the contents of the collection in an Array. |
AssociationData |
getTargetData(int index)
Method getTargetData. |
int |
getTargetDataCount()
Method getTargetDataCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<AssociationTarget> |
iterateTarget()
Method iterateTarget. |
java.util.Iterator<AssociationData> |
iterateTargetData()
Method iterateTargetData. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllTarget()
|
void |
removeAllTargetData()
|
boolean |
removeTarget(AssociationTarget vTarget)
Method removeTarget. |
AssociationTarget |
removeTargetAt(int index)
Method removeTargetAt. |
boolean |
removeTargetData(AssociationData vTargetData)
Method removeTargetData. |
AssociationData |
removeTargetDataAt(int index)
Method removeTargetDataAt. |
void |
setSourceEntityCode(java.lang.String sourceEntityCode)
Sets the value of field 'sourceEntityCode'. |
void |
setSourceEntityCodeNamespace(java.lang.String sourceEntityCodeNamespace)
Sets the value of field 'sourceEntityCodeNamespace'. |
void |
setTarget(AssociationTarget[] vTargetArray)
|
void |
setTarget(int index,
AssociationTarget vTarget)
|
void |
setTargetData(AssociationData[] vTargetDataArray)
|
void |
setTargetData(int index,
AssociationData vTargetData)
|
static AssociationSource |
unmarshalAssociationSource(java.io.Reader reader)
Method unmarshalAssociationSource. |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssociationSource()
Method Detail |
---|
public void addTarget(AssociationTarget vTarget) throws java.lang.IndexOutOfBoundsException
vTarget
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addTarget(int index, AssociationTarget vTarget) throws java.lang.IndexOutOfBoundsException
index
- vTarget
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addTargetData(AssociationData vTargetData) throws java.lang.IndexOutOfBoundsException
vTargetData
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addTargetData(int index, AssociationData vTargetData) throws java.lang.IndexOutOfBoundsException
index
- vTargetData
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<AssociationTarget> enumerateTarget()
public java.util.Enumeration<AssociationData> enumerateTargetData()
public java.lang.Object getChoiceValue()
public java.lang.String getSourceEntityCode()
public java.lang.String getSourceEntityCodeNamespace()
public AssociationTarget getTarget(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic AssociationTarget[] getTarget()
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 getTargetCount()
public AssociationData getTargetData(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic AssociationData[] getTargetData()
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 getTargetDataCount()
public boolean isValid()
public java.util.Iterator<AssociationTarget> iterateTarget()
public java.util.Iterator<AssociationData> iterateTargetData()
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 removeAllTarget()
public void removeAllTargetData()
public boolean removeTarget(AssociationTarget vTarget)
vTarget
-
public AssociationTarget removeTargetAt(int index)
index
-
public boolean removeTargetData(AssociationData vTargetData)
vTargetData
-
public AssociationData removeTargetDataAt(int index)
index
-
public void setSourceEntityCode(java.lang.String sourceEntityCode)
sourceEntityCode
- the value of field 'sourceEntityCode'public void setSourceEntityCodeNamespace(java.lang.String sourceEntityCodeNamespace)
sourceEntityCodeNamespace
- the value of field
'sourceEntityCodeNamespace'.public void setTarget(int index, AssociationTarget vTarget) throws java.lang.IndexOutOfBoundsException
index
- vTarget
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setTarget(AssociationTarget[] vTargetArray)
vTargetArray
- public void setTargetData(int index, AssociationData vTargetData) throws java.lang.IndexOutOfBoundsException
index
- vTargetData
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setTargetData(AssociationData[] vTargetDataArray)
vTargetDataArray
- public static AssociationSource unmarshalAssociationSource(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 |