public class Package extends Object implements Serializable
Constructor and Description |
---|
Package() |
Modifier and Type | Method and Description |
---|---|
void |
addAssetField(AssetField vAssetField) |
void |
addAssetField(int index,
AssetField vAssetField) |
Enumeration<AssetField> |
enumerateAssetField()
Method enumerateAssetField.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
AssetField[] |
getAssetField()
Method getAssetField.Returns the contents of the collection
in an Array.
|
AssetField |
getAssetField(int index)
Method getAssetField.
|
List<AssetField> |
getAssetFieldCollection()
Method getAssetFieldCollection.Returns a reference to
'_assetFieldList'.
|
int |
getAssetFieldCount()
Method getAssetFieldCount.
|
String |
getName()
Returns the value of field 'name'.
|
PackageChoice |
getPackageChoice()
Returns the value of field 'packageChoice'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<AssetField> |
iterateAssetField()
Method iterateAssetField.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllAssetField() |
boolean |
removeAssetField(AssetField vAssetField)
Method removeAssetField.
|
AssetField |
removeAssetFieldAt(int index)
Method removeAssetFieldAt.
|
void |
setAssetField(AssetField[] vAssetFieldArray) |
void |
setAssetField(int index,
AssetField vAssetField) |
void |
setAssetField(List<AssetField> vAssetFieldList)
Sets the value of '_assetFieldList' by copying the given
Vector.
|
void |
setAssetFieldCollection(List<AssetField> assetFieldList)
Deprecated.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setPackageChoice(PackageChoice packageChoice)
Sets the value of field 'packageChoice'.
|
static Package |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addAssetField(AssetField vAssetField) throws IndexOutOfBoundsException
vAssetField
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addAssetField(int index, AssetField vAssetField) throws IndexOutOfBoundsException
index
- vAssetField
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<AssetField> enumerateAssetField()
public boolean equals(Object obj)
public AssetField getAssetField(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic AssetField[] getAssetField()
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 List<AssetField> getAssetFieldCollection()
public int getAssetFieldCount()
public String getName()
public PackageChoice getPackageChoice()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<AssetField> iterateAssetField()
public void marshal(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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllAssetField()
public boolean removeAssetField(AssetField vAssetField)
vAssetField
- public AssetField removeAssetFieldAt(int index)
index
- public void setAssetField(int index, AssetField vAssetField) throws IndexOutOfBoundsException
index
- vAssetField
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setAssetField(AssetField[] vAssetFieldArray)
vAssetFieldArray
- public void setAssetField(List<AssetField> vAssetFieldList)
vAssetFieldList
- the Vector to copy.public void setAssetFieldCollection(List<AssetField> assetFieldList)
assetFieldList
- the Vector to set.public void setName(String name)
name
- the value of field 'name'.public void setPackageChoice(PackageChoice packageChoice)
packageChoice
- the value of field 'packageChoice'.public static Package unmarshal(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 marshalingorg.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 schemaCopyright © 2017. All rights reserved.