|
|||||||||
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.relations.AssociationPredicate
public class AssociationPredicate
The local identifier of the relation itself. associationName must match a local id of a supportedAssociationName in the corresponding mappings section.
Constructor Summary | |
---|---|
AssociationPredicate()
|
Method Summary | |
---|---|
void |
addSource(AssociationSource vSource)
|
void |
addSource(int index,
AssociationSource vSource)
|
java.util.Enumeration<? extends AssociationSource> |
enumerateSource()
Method enumerateSource. |
java.lang.String |
getAssociationName()
Returns the value of field 'associationName'. |
AssociationSource[] |
getSource()
Method getSource.Returns the contents of the collection in an Array. |
AssociationSource |
getSource(int index)
Method getSource. |
java.util.List<AssociationSource> |
getSourceAsReference()
Method getSourceAsReference.Returns a reference to '_sourceList'. |
int |
getSourceCount()
Method getSourceCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends AssociationSource> |
iterateSource()
Method iterateSource. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllSource()
|
boolean |
removeSource(AssociationSource vSource)
Method removeSource. |
AssociationSource |
removeSourceAt(int index)
Method removeSourceAt. |
void |
setAssociationName(java.lang.String associationName)
Sets the value of field 'associationName'. |
void |
setSource(AssociationSource[] vSourceArray)
|
void |
setSource(int index,
AssociationSource vSource)
|
void |
setSource(java.util.List<AssociationSource> vSourceList)
Sets the value of '_sourceList' by copying the given Vector. |
void |
setSourceAsReference(java.util.List<AssociationSource> sourceList)
Deprecated. |
static AssociationPredicate |
unmarshalAssociationPredicate(java.io.Reader reader)
Method unmarshalAssociationPredicate. |
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 AssociationPredicate()
Method Detail |
---|
public void addSource(AssociationSource vSource) throws java.lang.IndexOutOfBoundsException
vSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addSource(int index, AssociationSource vSource) throws java.lang.IndexOutOfBoundsException
index
- vSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends AssociationSource> enumerateSource()
public java.lang.String getAssociationName()
public AssociationSource getSource(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic AssociationSource[] 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 java.util.List<AssociationSource> getSourceAsReference()
public int getSourceCount()
public boolean isValid()
public java.util.Iterator<? extends AssociationSource> iterateSource()
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 removeAllSource()
public boolean removeSource(AssociationSource vSource)
vSource
-
public AssociationSource removeSourceAt(int index)
index
-
public void setAssociationName(java.lang.String associationName)
associationName
- the value of field 'associationName'.public void setSource(int index, AssociationSource vSource) throws java.lang.IndexOutOfBoundsException
index
- vSource
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setSource(AssociationSource[] vSourceArray)
vSourceArray
- public void setSource(java.util.List<AssociationSource> vSourceList)
vSourceList
- the Vector to copy.public void setSourceAsReference(java.util.List<AssociationSource> sourceList)
sourceList
- the Vector to set.public static AssociationPredicate unmarshalAssociationPredicate(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 |