|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.config.model.construction.BuildingList
public class BuildingList
Class BuildingList.
| Constructor Summary | |
|---|---|
BuildingList()
|
|
| Method Summary | |
|---|---|
void |
addBuilding(Building vBuilding)
|
void |
addBuilding(int index,
Building vBuilding)
|
Enumeration<? extends Building> |
enumerateBuilding()
Method enumerateBuilding. |
Building[] |
getBuilding()
Method getBuilding.Returns the contents of the collection in an Array. |
Building |
getBuilding(int index)
Method getBuilding. |
int |
getBuildingCount()
Method getBuildingCount. |
boolean |
isValid()
Method isValid. |
Iterator<? extends Building> |
iterateBuilding()
Method iterateBuilding. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllBuilding()
|
boolean |
removeBuilding(Building vBuilding)
Method removeBuilding. |
Building |
removeBuildingAt(int index)
Method removeBuildingAt. |
void |
setBuilding(Building[] vBuildingArray)
|
void |
setBuilding(int index,
Building vBuilding)
|
static BuildingList |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildingList()
| Method Detail |
|---|
public void addBuilding(Building vBuilding)
throws IndexOutOfBoundsException
vBuilding -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addBuilding(int index,
Building vBuilding)
throws IndexOutOfBoundsException
index - vBuilding -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends Building> enumerateBuilding()
public Building getBuilding(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Building[] getBuilding()
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 getBuildingCount()
public boolean isValid()
public Iterator<? extends Building> iterateBuilding()
public void marshal(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 schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
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 removeAllBuilding()
public boolean removeBuilding(Building vBuilding)
vBuilding -
public Building removeBuildingAt(int index)
index -
public void setBuilding(int index,
Building vBuilding)
throws IndexOutOfBoundsException
index - vBuilding -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setBuilding(Building[] vBuildingArray)
vBuildingArray -
public static BuildingList unmarshal(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 schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||