|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.concepts.Entities
public class Entities
A set of entity codes and their lexical descriptions
Constructor Summary | |
---|---|
Entities()
|
Method Summary | |
---|---|
void |
addEntity(Entity vEntity)
|
void |
addEntity(int index,
Entity vEntity)
|
java.util.Enumeration<Entity> |
enumerateEntity()
Method enumerateEntity. |
Entity[] |
getEntity()
Method getEntity.Returns the contents of the collection in an Array. |
Entity |
getEntity(int index)
Method getEntity. |
int |
getEntityCount()
Method getEntityCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<Entity> |
iterateEntity()
Method iterateEntity. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllEntity()
|
boolean |
removeEntity(Entity vEntity)
Method removeEntity. |
Entity |
removeEntityAt(int index)
Method removeEntityAt. |
void |
setEntity(Entity[] vEntityArray)
|
void |
setEntity(int index,
Entity vEntity)
|
static Entities |
unmarshalEntities(java.io.Reader reader)
Method unmarshalEntities. |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Entities()
Method Detail |
---|
public void addEntity(Entity vEntity) throws java.lang.IndexOutOfBoundsException
vEntity
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addEntity(int index, Entity vEntity) throws java.lang.IndexOutOfBoundsException
index
- vEntity
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<Entity> enumerateEntity()
public Entity getEntity(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Entity[] getEntity()
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 getEntityCount()
public boolean isValid()
public java.util.Iterator<Entity> iterateEntity()
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 removeAllEntity()
public boolean removeEntity(Entity vEntity)
vEntity
-
public Entity removeEntityAt(int index)
index
-
public void setEntity(int index, Entity vEntity) throws java.lang.IndexOutOfBoundsException
index
- vEntity
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setEntity(Entity[] vEntityArray)
vEntityArray
- public static Entities unmarshalEntities(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 |