|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.config.model.partpackage.PartPackage
public class PartPackage
Class PartPackage.
| Constructor Summary | |
|---|---|
PartPackage()
|
|
| Method Summary | |
|---|---|
void |
addPart(int index,
Part vPart)
|
void |
addPart(Part vPart)
|
Enumeration<? extends Part> |
enumeratePart()
Method enumeratePart. |
String |
getName()
Returns the value of field 'name'. |
Part[] |
getPart()
Method getPart.Returns the contents of the collection in an Array. |
Part |
getPart(int index)
Method getPart. |
int |
getPartCount()
Method getPartCount. |
boolean |
isValid()
Method isValid. |
Iterator<? extends Part> |
iteratePart()
Method iteratePart. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllPart()
|
boolean |
removePart(Part vPart)
Method removePart. |
Part |
removePartAt(int index)
Method removePartAt. |
void |
setName(String name)
Sets the value of field 'name'. |
void |
setPart(int index,
Part vPart)
|
void |
setPart(Part[] vPartArray)
|
static PartPackage |
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 PartPackage()
| Method Detail |
|---|
public void addPart(Part vPart)
throws IndexOutOfBoundsException
vPart -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addPart(int index,
Part vPart)
throws IndexOutOfBoundsException
index - vPart -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends Part> enumeratePart()
public String getName()
public Part getPart(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Part[] getPart()
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 getPartCount()
public boolean isValid()
public Iterator<? extends Part> iteratePart()
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 removeAllPart()
public boolean removePart(Part vPart)
vPart -
public Part removePartAt(int index)
index -
public void setName(String name)
name - the value of field 'name'.
public void setPart(int index,
Part vPart)
throws IndexOutOfBoundsException
index - vPart -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setPart(Part[] vPartArray)
vPartArray -
public static PartPackage 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 | |||||||||