|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.schema.annotations.jdo.PkType
public class PkType
Class PkType.
Constructor Summary | |
---|---|
PkType()
|
Method Summary | |
---|---|
void |
addKey(int index,
java.lang.String vKey)
|
void |
addKey(java.lang.String vKey)
|
java.util.Enumeration |
enumerateKey()
Method enumerateKey. |
java.lang.String[] |
getKey()
Method getKey.Returns the contents of the collection in an Array. |
java.lang.String |
getKey(int index)
Method getKey. |
int |
getKeyCount()
Method getKeyCount. |
boolean |
isValid()
Method isValid. |
java.util.Iterator |
iterateKey()
Method iterateKey. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
void |
removeAllKey()
|
boolean |
removeKey(java.lang.String vKey)
Method removeKey. |
java.lang.String |
removeKeyAt(int index)
Method removeKeyAt. |
void |
setKey(int index,
java.lang.String vKey)
|
void |
setKey(java.lang.String[] vKeyArray)
|
static PkType |
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 PkType()
Method Detail |
---|
public void addKey(java.lang.String vKey) throws java.lang.IndexOutOfBoundsException
vKey
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addKey(int index, java.lang.String vKey) throws java.lang.IndexOutOfBoundsException
index
- vKey
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration enumerateKey()
public java.lang.String getKey(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.lang.String[] getKey()
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 getKeyCount()
public boolean isValid()
public java.util.Iterator iterateKey()
public void marshal(java.io.Writer out) throws MarshalException, ValidationException
out
-
MarshalException
- if object is
null or if any SAXException is thrown during marshaling
ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, MarshalException, ValidationException
handler
-
java.io.IOException
- if an IOException occurs during
marshaling
ValidationException
- if this
object is an invalid instance according to the schema
MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllKey()
public boolean removeKey(java.lang.String vKey)
vKey
-
public java.lang.String removeKeyAt(int index)
index
-
public void setKey(int index, java.lang.String vKey) throws java.lang.IndexOutOfBoundsException
index
- vKey
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setKey(java.lang.String[] vKeyArray)
vKeyArray
- public static PkType unmarshal(java.io.Reader reader) throws MarshalException, ValidationException
reader
-
MarshalException
- if object is
null or if any SAXException is thrown during marshaling
ValidationException
- 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 schema
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |