org.opennms.netmgt.config.linkd
Class Vendor

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

public class Vendor
extends Object
implements Serializable

Class Vendor.

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

Constructor Summary
Vendor()
           
 
Method Summary
 void addExcludeRange(ExcludeRange vExcludeRange)
           
 void addExcludeRange(int index, ExcludeRange vExcludeRange)
           
 void addIncludeRange(IncludeRange vIncludeRange)
           
 void addIncludeRange(int index, IncludeRange vIncludeRange)
           
 void addSpecific(int index, String vSpecific)
           
 void addSpecific(String vSpecific)
           
 Enumeration<ExcludeRange> enumerateExcludeRange()
          Method enumerateExcludeRange.
 Enumeration<IncludeRange> enumerateIncludeRange()
          Method enumerateIncludeRange.
 Enumeration<String> enumerateSpecific()
          Method enumerateSpecific.
 String getClassName()
          Returns the value of field 'className'.
 ExcludeRange[] getExcludeRange()
          Method getExcludeRange.Returns the contents of the collection in an Array.
 ExcludeRange getExcludeRange(int index)
          Method getExcludeRange.
 List<ExcludeRange> getExcludeRangeCollection()
          Method getExcludeRangeCollection.Returns a reference to '_excludeRangeList'.
 int getExcludeRangeCount()
          Method getExcludeRangeCount.
 IncludeRange[] getIncludeRange()
          Method getIncludeRange.Returns the contents of the collection in an Array.
 IncludeRange getIncludeRange(int index)
          Method getIncludeRange.
 List<IncludeRange> getIncludeRangeCollection()
          Method getIncludeRangeCollection.Returns a reference to '_includeRangeList'.
 int getIncludeRangeCount()
          Method getIncludeRangeCount.
 String[] getSpecific()
          Method getSpecific.Returns the contents of the collection in an Array.
 String getSpecific(int index)
          Method getSpecific.
 List<String> getSpecificCollection()
          Method getSpecificCollection.Returns a reference to '_specificList'.
 int getSpecificCount()
          Method getSpecificCount.
 String getSysoidRootMask()
          Returns the value of field 'sysoidRootMask'.
 String getVendor_name()
          Returns the value of field 'vendor_name'.
 boolean isValid()
          Method isValid.
 Iterator<ExcludeRange> iterateExcludeRange()
          Method iterateExcludeRange.
 Iterator<IncludeRange> iterateIncludeRange()
          Method iterateIncludeRange.
 Iterator<String> iterateSpecific()
          Method iterateSpecific.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void removeAllExcludeRange()
           
 void removeAllIncludeRange()
           
 void removeAllSpecific()
           
 boolean removeExcludeRange(ExcludeRange vExcludeRange)
          Method removeExcludeRange.
 ExcludeRange removeExcludeRangeAt(int index)
          Method removeExcludeRangeAt.
 boolean removeIncludeRange(IncludeRange vIncludeRange)
          Method removeIncludeRange.
 IncludeRange removeIncludeRangeAt(int index)
          Method removeIncludeRangeAt.
 boolean removeSpecific(String vSpecific)
          Method removeSpecific.
 String removeSpecificAt(int index)
          Method removeSpecificAt.
 void setClassName(String className)
          Sets the value of field 'className'.
 void setExcludeRange(ExcludeRange[] vExcludeRangeArray)
           
 void setExcludeRange(int index, ExcludeRange vExcludeRange)
           
 void setExcludeRange(List<ExcludeRange> vExcludeRangeList)
          Sets the value of '_excludeRangeList' by copying the given Vector.
 void setExcludeRangeCollection(List<ExcludeRange> excludeRangeList)
          Deprecated.  
 void setIncludeRange(IncludeRange[] vIncludeRangeArray)
           
 void setIncludeRange(int index, IncludeRange vIncludeRange)
           
 void setIncludeRange(List<IncludeRange> vIncludeRangeList)
          Sets the value of '_includeRangeList' by copying the given Vector.
 void setIncludeRangeCollection(List<IncludeRange> includeRangeList)
          Deprecated.  
 void setSpecific(int index, String vSpecific)
           
 void setSpecific(List<String> vSpecificList)
          Sets the value of '_specificList' by copying the given Vector.
 void setSpecific(String[] vSpecificArray)
           
 void setSpecificCollection(List<String> specificList)
          Deprecated.  
 void setSysoidRootMask(String sysoidRootMask)
          Sets the value of field 'sysoidRootMask'.
 void setVendor_name(String vendor_name)
          Sets the value of field 'vendor_name'.
static Vendor 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

Vendor

public Vendor()
Method Detail

addExcludeRange

public void addExcludeRange(ExcludeRange vExcludeRange)
                     throws IndexOutOfBoundsException
Parameters:
vExcludeRange -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addExcludeRange

public void addExcludeRange(int index,
                            ExcludeRange vExcludeRange)
                     throws IndexOutOfBoundsException
Parameters:
index -
vExcludeRange -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addIncludeRange

public void addIncludeRange(IncludeRange vIncludeRange)
                     throws IndexOutOfBoundsException
Parameters:
vIncludeRange -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addIncludeRange

public void addIncludeRange(int index,
                            IncludeRange vIncludeRange)
                     throws IndexOutOfBoundsException
Parameters:
index -
vIncludeRange -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addSpecific

public void addSpecific(String vSpecific)
                 throws IndexOutOfBoundsException
Parameters:
vSpecific -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addSpecific

public void addSpecific(int index,
                        String vSpecific)
                 throws IndexOutOfBoundsException
Parameters:
index -
vSpecific -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateExcludeRange

public Enumeration<ExcludeRange> enumerateExcludeRange()
Method enumerateExcludeRange.

Returns:
an Enumeration over all possible elements of this collection

enumerateIncludeRange

public Enumeration<IncludeRange> enumerateIncludeRange()
Method enumerateIncludeRange.

Returns:
an Enumeration over all possible elements of this collection

enumerateSpecific

public Enumeration<String> enumerateSpecific()
Method enumerateSpecific.

Returns:
an Enumeration over all possible elements of this collection

getClassName

public String getClassName()
Returns the value of field 'className'. The field 'className' has the following description: Java Class Name to get Vlans Info on matching Sysoids.

Returns:
the value of field 'ClassName'.

getExcludeRange

public ExcludeRange getExcludeRange(int index)
                             throws IndexOutOfBoundsException
Method getExcludeRange.

Parameters:
index -
Returns:
the value of the org.opennms.netmgt.config.linkd.ExcludeRange at the given index
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getExcludeRange

public ExcludeRange[] getExcludeRange()
Method getExcludeRange.Returns the contents of the collection in an Array.

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.

Returns:
this collection as an Array

getExcludeRangeCollection

public List<ExcludeRange> getExcludeRangeCollection()
Method getExcludeRangeCollection.Returns a reference to '_excludeRangeList'. No type checking is performed on any modifications to the Vector.

Returns:
a reference to the Vector backing this class

getExcludeRangeCount

public int getExcludeRangeCount()
Method getExcludeRangeCount.

Returns:
the size of this collection

getIncludeRange

public IncludeRange getIncludeRange(int index)
                             throws IndexOutOfBoundsException
Method getIncludeRange.

Parameters:
index -
Returns:
the value of the org.opennms.netmgt.config.linkd.IncludeRange at the given index
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getIncludeRange

public IncludeRange[] getIncludeRange()
Method getIncludeRange.Returns the contents of the collection in an Array.

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.

Returns:
this collection as an Array

getIncludeRangeCollection

public List<IncludeRange> getIncludeRangeCollection()
Method getIncludeRangeCollection.Returns a reference to '_includeRangeList'. No type checking is performed on any modifications to the Vector.

Returns:
a reference to the Vector backing this class

getIncludeRangeCount

public int getIncludeRangeCount()
Method getIncludeRangeCount.

Returns:
the size of this collection

getSpecific

public String getSpecific(int index)
                   throws IndexOutOfBoundsException
Method getSpecific.

Parameters:
index -
Returns:
the value of the java.lang.String at the given index
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getSpecific

public String[] getSpecific()
Method getSpecific.Returns the contents of the collection in an Array.

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.

Returns:
this collection as an Array

getSpecificCollection

public List<String> getSpecificCollection()
Method getSpecificCollection.Returns a reference to '_specificList'. No type checking is performed on any modifications to the Vector.

Returns:
a reference to the Vector backing this class

getSpecificCount

public int getSpecificCount()
Method getSpecificCount.

Returns:
the size of this collection

getSysoidRootMask

public String getSysoidRootMask()
Returns the value of field 'sysoidRootMask'. The field 'sysoidRootMask' has the following description: Vendor sysoid root identifier.

Returns:
the value of field 'SysoidRootMask'.

getVendor_name

public String getVendor_name()
Returns the value of field 'vendor_name'. The field 'vendor_name' has the following description: Vendor identifier.

Returns:
the value of field 'Vendor_name'.

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

iterateExcludeRange

public Iterator<ExcludeRange> iterateExcludeRange()
Method iterateExcludeRange.

Returns:
an Iterator over all possible elements in this collection

iterateIncludeRange

public Iterator<IncludeRange> iterateIncludeRange()
Method iterateIncludeRange.

Returns:
an Iterator over all possible elements in this collection

iterateSpecific

public Iterator<String> iterateSpecific()
Method iterateSpecific.

Returns:
an Iterator over all possible elements in this collection

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

removeAllExcludeRange

public void removeAllExcludeRange()

removeAllIncludeRange

public void removeAllIncludeRange()

removeAllSpecific

public void removeAllSpecific()

removeExcludeRange

public boolean removeExcludeRange(ExcludeRange vExcludeRange)
Method removeExcludeRange.

Parameters:
vExcludeRange -
Returns:
true if the object was removed from the collection.

removeExcludeRangeAt

public ExcludeRange removeExcludeRangeAt(int index)
Method removeExcludeRangeAt.

Parameters:
index -
Returns:
the element removed from the collection

removeIncludeRange

public boolean removeIncludeRange(IncludeRange vIncludeRange)
Method removeIncludeRange.

Parameters:
vIncludeRange -
Returns:
true if the object was removed from the collection.

removeIncludeRangeAt

public IncludeRange removeIncludeRangeAt(int index)
Method removeIncludeRangeAt.

Parameters:
index -
Returns:
the element removed from the collection

removeSpecific

public boolean removeSpecific(String vSpecific)
Method removeSpecific.

Parameters:
vSpecific -
Returns:
true if the object was removed from the collection.

removeSpecificAt

public String removeSpecificAt(int index)
Method removeSpecificAt.

Parameters:
index -
Returns:
the element removed from the collection

setClassName

public void setClassName(String className)
Sets the value of field 'className'. The field 'className' has the following description: Java Class Name to get Vlans Info on matching Sysoids.

Parameters:
className - the value of field 'className'.

setExcludeRange

public void setExcludeRange(int index,
                            ExcludeRange vExcludeRange)
                     throws IndexOutOfBoundsException
Parameters:
index -
vExcludeRange -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setExcludeRange

public void setExcludeRange(ExcludeRange[] vExcludeRangeArray)
Parameters:
vExcludeRangeArray -

setExcludeRange

public void setExcludeRange(List<ExcludeRange> vExcludeRangeList)
Sets the value of '_excludeRangeList' by copying the given Vector. All elements will be checked for type safety.

Parameters:
vExcludeRangeList - the Vector to copy.

setExcludeRangeCollection

public void setExcludeRangeCollection(List<ExcludeRange> excludeRangeList)
Deprecated. 

Sets the value of '_excludeRangeList' by setting it to the given Vector. No type checking is performed.

Parameters:
excludeRangeList - the Vector to set.

setIncludeRange

public void setIncludeRange(int index,
                            IncludeRange vIncludeRange)
                     throws IndexOutOfBoundsException
Parameters:
index -
vIncludeRange -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setIncludeRange

public void setIncludeRange(IncludeRange[] vIncludeRangeArray)
Parameters:
vIncludeRangeArray -

setIncludeRange

public void setIncludeRange(List<IncludeRange> vIncludeRangeList)
Sets the value of '_includeRangeList' by copying the given Vector. All elements will be checked for type safety.

Parameters:
vIncludeRangeList - the Vector to copy.

setIncludeRangeCollection

public void setIncludeRangeCollection(List<IncludeRange> includeRangeList)
Deprecated. 

Sets the value of '_includeRangeList' by setting it to the given Vector. No type checking is performed.

Parameters:
includeRangeList - the Vector to set.

setSpecific

public void setSpecific(int index,
                        String vSpecific)
                 throws IndexOutOfBoundsException
Parameters:
index -
vSpecific -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setSpecific

public void setSpecific(String[] vSpecificArray)
Parameters:
vSpecificArray -

setSpecific

public void setSpecific(List<String> vSpecificList)
Sets the value of '_specificList' by copying the given Vector. All elements will be checked for type safety.

Parameters:
vSpecificList - the Vector to copy.

setSpecificCollection

public void setSpecificCollection(List<String> specificList)
Deprecated. 

Sets the value of '_specificList' by setting it to the given Vector. No type checking is performed.

Parameters:
specificList - the Vector to set.

setSysoidRootMask

public void setSysoidRootMask(String sysoidRootMask)
Sets the value of field 'sysoidRootMask'. The field 'sysoidRootMask' has the following description: Vendor sysoid root identifier.

Parameters:
sysoidRootMask - the value of field 'sysoidRootMask'.

setVendor_name

public void setVendor_name(String vendor_name)
Sets the value of field 'vendor_name'. The field 'vendor_name' has the following description: Vendor identifier.

Parameters:
vendor_name - the value of field 'vendor_name'.

unmarshal

public static Vendor unmarshal(Reader reader)
                        throws org.exolab.castor.xml.MarshalException,
                               org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.linkd.Vendo
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright ? 2008. All Rights Reserved.