|
||||||||||
| 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,
String vKey)
|
void |
addKey(String vKey)
|
Enumeration<? extends String> |
enumerateKey()
Method enumerateKey. |
String[] |
getKey()
Method getKey.Returns the contents of the collection in an Array. |
String |
getKey(int index)
Method getKey. |
int |
getKeyCount()
Method getKeyCount. |
boolean |
isValid()
Method isValid. |
Iterator<? extends String> |
iterateKey()
Method iterateKey. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllKey()
|
boolean |
removeKey(String vKey)
Method removeKey. |
String |
removeKeyAt(int index)
Method removeKeyAt. |
void |
setKey(int index,
String vKey)
|
void |
setKey(String[] vKeyArray)
|
static PkType |
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 PkType()
| Method Detail |
|---|
public void addKey(String vKey)
throws IndexOutOfBoundsException
vKey -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addKey(int index,
String vKey)
throws IndexOutOfBoundsException
index - vKey -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<? extends String> enumerateKey()
public String getKey(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic 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 Iterator<? extends String> iterateKey()
public void marshal(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 schema
public void marshal(ContentHandler handler)
throws IOException,
MarshalException,
ValidationException
handler -
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(String vKey)
vKey -
public String removeKeyAt(int index)
index -
public void setKey(int index,
String vKey)
throws IndexOutOfBoundsException
index - vKey -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setKey(String[] vKeyArray)
vKeyArray -
public static PkType unmarshal(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 schema
public 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 | |||||||||