public class Vlans extends Object implements Serializable
Constructor and Description |
---|
Vlans() |
Modifier and Type | Method and Description |
---|---|
void |
addVendor(int index,
Vendor vVendor) |
void |
addVendor(Vendor vVendor) |
Enumeration<Vendor> |
enumerateVendor()
Method enumerateVendor.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Vendor[] |
getVendor()
Method getVendor.Returns the contents of the collection in
an Array.
|
Vendor |
getVendor(int index)
Method getVendor.
|
List<Vendor> |
getVendorCollection()
Method getVendorCollection.Returns a reference to
'_vendorList'.
|
int |
getVendorCount()
Method getVendorCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Vendor> |
iterateVendor()
Method iterateVendor.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllVendor() |
boolean |
removeVendor(Vendor vVendor)
Method removeVendor.
|
Vendor |
removeVendorAt(int index)
Method removeVendorAt.
|
void |
setVendor(int index,
Vendor vVendor) |
void |
setVendor(List<Vendor> vVendorList)
Sets the value of '_vendorList' by copying the given Vector.
|
void |
setVendor(Vendor[] vVendorArray) |
void |
setVendorCollection(List<Vendor> vendorList)
Deprecated.
|
static Vlans |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addVendor(Vendor vVendor) throws IndexOutOfBoundsException
vVendor
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addVendor(int index, Vendor vVendor) throws IndexOutOfBoundsException
index
- vVendor
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Vendor> enumerateVendor()
public boolean equals(Object obj)
public Vendor getVendor(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Vendor[] getVendor()
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<Vendor> getVendorCollection()
public int getVendorCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Vendor> iterateVendor()
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 removeAllVendor()
public boolean removeVendor(Vendor vVendor)
vVendor
- public Vendor removeVendorAt(int index)
index
- public void setVendor(int index, Vendor vVendor) throws IndexOutOfBoundsException
index
- vVendor
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setVendor(Vendor[] vVendorArray)
vVendorArray
- public void setVendor(List<Vendor> vVendorList)
vVendorList
- the Vector to copy.public void setVendorCollection(List<Vendor> vendorList)
vendorList
- the Vector to set.public static Vlans 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 © 2015. All rights reserved.