|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.essex.ia.opview.xml.Ports
public class Ports
Class Ports.
Constructor Summary | |
---|---|
Ports()
|
Method Summary | |
---|---|
void |
addPort(int index,
Port vPort)
|
void |
addPort(Port vPort)
|
java.util.Enumeration<? extends Port> |
enumeratePort()
Method enumeratePort. |
Port[] |
getPort()
Method getPort.Returns the contents of the collection in an Array. |
Port |
getPort(int index)
Method getPort. |
int |
getPortCount()
Method getPortCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Port> |
iteratePort()
Method iteratePort. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllPort()
|
boolean |
removePort(Port vPort)
Method removePort. |
Port |
removePortAt(int index)
Method removePortAt. |
void |
setPort(int index,
Port vPort)
|
void |
setPort(Port[] vPortArray)
|
static Ports |
unmarshal(java.io.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 Ports()
Method Detail |
---|
public void addPort(Port vPort) throws java.lang.IndexOutOfBoundsException
vPort
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addPort(int index, Port vPort) throws java.lang.IndexOutOfBoundsException
index
- vPort
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Port> enumeratePort()
public Port getPort(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Port[] getPort()
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 getPortCount()
public boolean isValid()
public java.util.Iterator<? extends Port> iteratePort()
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 removeAllPort()
public boolean removePort(Port vPort)
vPort
-
public Port removePortAt(int index)
index
-
public void setPort(int index, Port vPort) throws java.lang.IndexOutOfBoundsException
index
- vPort
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setPort(Port[] vPortArray)
vPortArray
- public static Ports unmarshal(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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |