public class Forces extends Object implements Serializable
Constructor and Description |
---|
Forces() |
Modifier and Type | Method and Description |
---|---|
void |
addForce(int index,
String vForce) |
void |
addForce(String vForce) |
Enumeration |
enumerateForce()
Method enumerateForce.
|
String[] |
getForce()
Method getForce.Returns the contents of the collection in an
Array.
|
String |
getForce(int index)
Method getForce.
|
int |
getForceCount()
Method getForceCount.
|
boolean |
isValid()
Method isValid.
|
Iterator |
iterateForce()
Method iterateForce.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllForce() |
boolean |
removeForce(String vForce)
Method removeForce.
|
String |
removeForceAt(int index)
Method removeForceAt.
|
void |
setForce(int index,
String vForce) |
void |
setForce(String[] vForceArray) |
static Forces |
unmarshalForces(Reader reader)
Method unmarshalForces.
|
void |
validate() |
public void addForce(String vForce) throws IndexOutOfBoundsException
vForce
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addForce(int index, String vForce) throws IndexOutOfBoundsException
index
- vForce
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration enumerateForce()
public String getForce(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic String[] getForce()
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 getForceCount()
public boolean isValid()
public Iterator iterateForce()
public void marshal(Writer out) throws MarshalException, ValidationException
out
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, MarshalException, ValidationException
handler
- IOException
- if an IOException occurs during
marshalingValidationException
- if this
object is an invalid instance according to the schemaMarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllForce()
public boolean removeForce(String vForce)
vForce
- public String removeForceAt(int index)
index
- public void setForce(int index, String vForce) throws IndexOutOfBoundsException
index
- vForce
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setForce(String[] vForceArray)
vForceArray
- public static Forces unmarshalForces(Reader reader) throws MarshalException, ValidationException
reader
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws ValidationException
ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2013. All rights reserved.