|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.codingSchemes.CodingSchemes
public class CodingSchemes
A collection of one or more coding schemes.
Constructor Summary | |
---|---|
CodingSchemes()
|
Method Summary | |
---|---|
void |
addCodingScheme(CodingScheme vCodingScheme)
|
void |
addCodingScheme(int index,
CodingScheme vCodingScheme)
|
java.util.Enumeration<CodingScheme> |
enumerateCodingScheme()
Method enumerateCodingScheme. |
CodingScheme[] |
getCodingScheme()
Method getCodingScheme.Returns the contents of the collection in an Array. |
CodingScheme |
getCodingScheme(int index)
Method getCodingScheme. |
int |
getCodingSchemeCount()
Method getCodingSchemeCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<CodingScheme> |
iterateCodingScheme()
Method iterateCodingScheme. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllCodingScheme()
|
boolean |
removeCodingScheme(CodingScheme vCodingScheme)
Method removeCodingScheme. |
CodingScheme |
removeCodingSchemeAt(int index)
Method removeCodingSchemeAt. |
void |
setCodingScheme(CodingScheme[] vCodingSchemeArray)
|
void |
setCodingScheme(int index,
CodingScheme vCodingScheme)
|
static CodingSchemes |
unmarshalCodingSchemes(java.io.Reader reader)
Method unmarshalCodingSchemes. |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CodingSchemes()
Method Detail |
---|
public void addCodingScheme(CodingScheme vCodingScheme) throws java.lang.IndexOutOfBoundsException
vCodingScheme
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addCodingScheme(int index, CodingScheme vCodingScheme) throws java.lang.IndexOutOfBoundsException
index
- vCodingScheme
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<CodingScheme> enumerateCodingScheme()
public CodingScheme getCodingScheme(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic CodingScheme[] getCodingScheme()
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 getCodingSchemeCount()
public boolean isValid()
public java.util.Iterator<CodingScheme> iterateCodingScheme()
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 removeAllCodingScheme()
public boolean removeCodingScheme(CodingScheme vCodingScheme)
vCodingScheme
-
public CodingScheme removeCodingSchemeAt(int index)
index
-
public void setCodingScheme(int index, CodingScheme vCodingScheme) throws java.lang.IndexOutOfBoundsException
index
- vCodingScheme
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setCodingScheme(CodingScheme[] vCodingSchemeArray)
vCodingSchemeArray
- public static CodingSchemes unmarshalCodingSchemes(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 |