|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.essex.xul.castor.Kernels
public class Kernels
Class Kernels.
Constructor Summary | |
---|---|
Kernels()
|
Method Summary | |
---|---|
void |
addKernel(int index,
Kernel vKernel)
|
void |
addKernel(Kernel vKernel)
|
java.util.Enumeration<? extends Kernel> |
enumerateKernel()
Method enumerateKernel. |
Kernel[] |
getKernel()
Method getKernel.Returns the contents of the collection in an Array. |
Kernel |
getKernel(int index)
Method getKernel. |
int |
getKernelCount()
Method getKernelCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Kernel> |
iterateKernel()
Method iterateKernel. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllKernel()
|
boolean |
removeKernel(Kernel vKernel)
Method removeKernel. |
Kernel |
removeKernelAt(int index)
Method removeKernelAt. |
void |
setKernel(int index,
Kernel vKernel)
|
void |
setKernel(Kernel[] vKernelArray)
|
static Kernels |
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 Kernels()
Method Detail |
---|
public void addKernel(Kernel vKernel) throws java.lang.IndexOutOfBoundsException
vKernel
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addKernel(int index, Kernel vKernel) throws java.lang.IndexOutOfBoundsException
index
- vKernel
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Kernel> enumerateKernel()
public Kernel getKernel(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Kernel[] getKernel()
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 getKernelCount()
public boolean isValid()
public java.util.Iterator<? extends Kernel> iterateKernel()
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 removeAllKernel()
public boolean removeKernel(Kernel vKernel)
vKernel
-
public Kernel removeKernelAt(int index)
index
-
public void setKernel(int index, Kernel vKernel) throws java.lang.IndexOutOfBoundsException
index
- vKernel
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setKernel(Kernel[] vKernelArray)
vKernelArray
- public static Kernels 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 |