public class PkType extends Object implements Serializable
Constructor and Description |
---|
PkType() |
Modifier and Type | Method and Description |
---|---|
void |
addKey(int index,
String vKey) |
void |
addKey(String vKey) |
Enumeration |
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 |
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() |
public void addKey(String vKey) throws IndexOutOfBoundsException
vKey
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addKey(int index, String vKey) throws IndexOutOfBoundsException
index
- vKey
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration 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 iterateKey()
public void marshal(Writer out) throws MarshalException, ValidationException
out
- MarshalException
- if object is
null or if any SAXException is thrown during marshalingValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, MarshalException, ValidationException
handler
- IOException
- if an IOException occurs during
marshalingValidationException
- if this
object is an invalid instance according to the schemaMarshalException
- 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 marshalingValidationException
- 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 schemaCopyright © 2018. All rights reserved.