|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.config.model.mineral.LocaleList
public class LocaleList
Class LocaleList.
| Constructor Summary | |
|---|---|
LocaleList()
|
|
| Method Summary | |
|---|---|
void |
addLocale(int index,
Locale vLocale)
|
void |
addLocale(Locale vLocale)
|
Enumeration<? extends Locale> |
enumerateLocale()
Method enumerateLocale. |
Locale[] |
getLocale()
Method getLocale.Returns the contents of the collection in an Array. |
Locale |
getLocale(int index)
Method getLocale. |
int |
getLocaleCount()
Method getLocaleCount. |
boolean |
isValid()
Method isValid. |
Iterator<? extends Locale> |
iterateLocale()
Method iterateLocale. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllLocale()
|
boolean |
removeLocale(Locale vLocale)
Method removeLocale. |
Locale |
removeLocaleAt(int index)
Method removeLocaleAt. |
void |
setLocale(int index,
Locale vLocale)
|
void |
setLocale(Locale[] vLocaleArray)
|
static LocaleList |
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 LocaleList()
| Method Detail |
|---|
public void addLocale(Locale vLocale)
throws IndexOutOfBoundsException
vLocale -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addLocale(int index,
Locale vLocale)
throws IndexOutOfBoundsException
index - vLocale -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends Locale> enumerateLocale()
public Locale getLocale(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Locale[] getLocale()
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 getLocaleCount()
public boolean isValid()
public Iterator<? extends Locale> iterateLocale()
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 removeAllLocale()
public boolean removeLocale(Locale vLocale)
vLocale -
public Locale removeLocaleAt(int index)
index -
public void setLocale(int index,
Locale vLocale)
throws IndexOutOfBoundsException
index - vLocale -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setLocale(Locale[] vLocaleArray)
vLocaleArray -
public static LocaleList 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 | |||||||||