org.opennms.netmgt.config.linkd
Class Vlans

java.lang.Object
  extended by org.opennms.netmgt.config.linkd.Vlans
All Implemented Interfaces:
java.io.Serializable

public class Vlans
extends java.lang.Object
implements java.io.Serializable

Class Vlans.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Vlans()
           
 
Method Summary
 void addVendor(int index, Vendor vVendor)
          Method addVendor
 void addVendor(Vendor vVendor)
          Method addVendor
 void clearVendor()
          Method clearVendor
 java.util.Enumeration enumerateVendor()
          Method enumerateVendor
 Vendor[] getVendor()
          Method getVendor
 Vendor getVendor(int index)
          Method getVendor
 java.util.ArrayList getVendorCollection()
          Method getVendorCollection Returns a reference to 'vendor'.
 int getVendorCount()
          Method getVendorCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeVendor(Vendor vVendor)
          Method removeVendor
 void setVendor(java.util.ArrayList vendorCollection)
          Method setVendor Sets the value of 'vendor' by copying the given ArrayList.
 void setVendor(int index, Vendor vVendor)
          Method setVendor
 void setVendor(Vendor[] vendorArray)
          Method setVendor
 void setVendorCollection(java.util.ArrayList vendorCollection)
          Method setVendorCollection Sets the value of 'vendor' by setting it to the given ArrayList.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vlans

public Vlans()
Method Detail

addVendor

public void addVendor(Vendor vVendor)
               throws java.lang.IndexOutOfBoundsException
Method addVendor

Parameters:
vVendor -
Throws:
java.lang.IndexOutOfBoundsException

addVendor

public void addVendor(int index,
                      Vendor vVendor)
               throws java.lang.IndexOutOfBoundsException
Method addVendor

Parameters:
index -
vVendor -
Throws:
java.lang.IndexOutOfBoundsException

clearVendor

public void clearVendor()
Method clearVendor


enumerateVendor

public java.util.Enumeration enumerateVendor()
Method enumerateVendor

Returns:
Enumeration

getVendor

public Vendor getVendor(int index)
                 throws java.lang.IndexOutOfBoundsException
Method getVendor

Parameters:
index -
Returns:
Vendor
Throws:
java.lang.IndexOutOfBoundsException

getVendor

public Vendor[] getVendor()
Method getVendor

Returns:
Vendor

getVendorCollection

public java.util.ArrayList getVendorCollection()
Method getVendorCollection Returns a reference to 'vendor'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getVendorCount

public int getVendorCount()
Method getVendorCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeVendor

public boolean removeVendor(Vendor vVendor)
Method removeVendor

Parameters:
vVendor -
Returns:
boolean

setVendor

public void setVendor(int index,
                      Vendor vVendor)
               throws java.lang.IndexOutOfBoundsException
Method setVendor

Parameters:
index -
vVendor -
Throws:
java.lang.IndexOutOfBoundsException

setVendor

public void setVendor(Vendor[] vendorArray)
Method setVendor

Parameters:
vendorArray -

setVendor

public void setVendor(java.util.ArrayList vendorCollection)
Method setVendor Sets the value of 'vendor' by copying the given ArrayList.

Parameters:
vendorCollection - the Vector to copy.

setVendorCollection

public void setVendorCollection(java.util.ArrayList vendorCollection)
Method setVendorCollection Sets the value of 'vendor' by setting it to the given ArrayList. No type checking is performed.

Parameters:
vendorCollection - the ArrayList to copy.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.